Packages that use Signature
Package
Description
Interfaces and factories for the base I2P SDK used to develop applications that communicate through I2P.
Provides a standard way for reading and writing messages transferred over I2P so that the recipient has an authenticated mechanism to reply to the sender.
Internal implementation of the I2P client SDK - the client side of the Invisible Internet Client Protocol (I2CP), separating implementation from the interfaces in
net.i2p.client. Implementation of a TCP-like (reliable, authenticated, in order) set of sockets for communicating over the IP-like (unreliable, unauthenticated, unordered) I2P messages.
Core cryptographic primitives used throughout I2P: symmetric ciphers (AES, ChaCha20), hashes (SHA-1, SHA-256, SHA-384, SHA-512), HMAC and HKDF key derivation, the ElGamal and DSA/EdDSA/RedDSA engines, key and certificate utilities, and the entropy harvester.
Common data structures used by the I2P protocols: Destination, LeaseSet, PublicKey, Signature, Certificate and their friends.
The Invisible Internet Client Protocol (I2CP) allows applications simplified access to I2P network without requiring them to deal with the issues involved with the Invisible Internet Network Protocol (I2NP).
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
General utility classes shared across the core libraries and the router.
Uses of Signature in net.i2p.client
Methods in net.i2p.client that return SignatureUses of Signature in net.i2p.client.datagram
Fields in net.i2p.client.datagram declared as SignatureUses of Signature in net.i2p.client.impl
Fields in net.i2p.client.impl declared as SignatureModifier and TypeFieldDescriptionprivate SignatureI2PSessionImpl._offlineSignatureSignature for the offline lease set.Methods in net.i2p.client.impl that return SignatureModifier and TypeMethodDescriptionI2PSessionImpl.getOfflineSignature()Null on error or if not initialized or does not have offline keys.Uses of Signature in net.i2p.client.streaming.impl
Fields in net.i2p.client.streaming.impl declared as SignatureModifier and TypeFieldDescriptionprotected SignaturePacket._offlineSignatureDestination's signature made with the transient key of an offline block.protected SignaturePacket._optionSignatureTime to wait before resending, in ms, one of the four fields set only when the flags say so.Methods in net.i2p.client.streaming.impl that return SignatureModifier and TypeMethodDescriptionPacket.getOptionalSignature()The signature on the packet (only included if the flag for it is set)Methods in net.i2p.client.streaming.impl with parameters of type SignatureModifier and TypeMethodDescriptionvoidPacket.setOptionalSignature(Signature sig) This also sets flag FLAG_SIGNATURE_INCLUDED.Uses of Signature in net.i2p.crypto
Methods in net.i2p.crypto that return SignatureModifier and TypeMethodDescriptionprivate SignatureDSAEngine.altSign(byte[] data, int offset, int len, SigningPrivateKey privateKey) Generic sign any type.private SignatureDSAEngine.altSignRaw(String algo, SimpleDataStructure hash, PrivateKey privKey, SigType type) Generic raw sign any type.private SignatureDSAEngine.altSignRaw(SimpleDataStructure hash, SigningPrivateKey privateKey) Generic raw sign any type.private SignatureDSAEngine.altSignSHA1(byte[] data, int offset, int len, SigningPrivateKey privateKey) Alternate toDSAEngine.sign(byte[], int, int, SigningPrivateKey)using java.security libraries.static SignatureSigUtil.fromJavaSig(byte[] asn, SigType type) Convert a Java ASN.1 signature byte array to an I2P Signature.DSAEngine.sign(byte[] data, int offset, int length, SigningPrivateKey signingKey) Sign using any key type as of 0.9.12 (DSA-SHA1 only prior to that).DSAEngine.sign(byte[] data, SigningPrivateKey signingKey) Sign using any key type.DSAEngine.sign(InputStream in, SigningPrivateKey signingKey) Sign using DSA-SHA1 ONLY.DSAEngine.sign(SHA1Hash hash, SigningPrivateKey signingKey) Sign using DSA-SHA1 ONLY.DSAEngine.sign(Hash hash, SigningPrivateKey signingKey) Nonstandard.DSAEngine.sign(SimpleDataStructure hash, PrivateKey privKey, SigType type) Generic signature type.DSAEngine.sign(SimpleDataStructure hash, SigningPrivateKey signingKey) Generic signature type.Uses the given private key to sign the given input file along with its version string using DSA.TrustedUpdate.sign(String inputFile, String signedFile, SigningPrivateKey signingPrivateKey, String version) Uses the givenSigningPrivateKeyto sign the given input file along with its version string using DSA.private SignatureDSAEngine.signIt(SimpleDataStructure hash, SigningPrivateKey signingKey) Sign using DSA-SHA1 or Syndie DSA-SHA256 ONLY.Methods in net.i2p.crypto with parameters of type SignatureModifier and TypeMethodDescriptionprivate booleanDSAEngine.altVerifySig(Signature signature, byte[] data, int offset, int len, SigningPublicKey verifyingKey) Generic verify any type.private booleanDSAEngine.altVerifySigRaw(Signature signature, SimpleDataStructure hash, PublicKey pubKey) Generic raw verify any type.private booleanDSAEngine.altVerifySigRaw(Signature signature, SimpleDataStructure hash, SigningPublicKey verifyingKey) Generic raw verify any typeprivate booleanDSAEngine.altVerifySigSHA1(Signature signature, byte[] data, int offset, int len, SigningPublicKey verifyingKey) Alternate toDSAEngine.verifySignature(Signature, byte[], int, int, SigningPublicKey)using java.security libraries.static byte[]Convert an I2P Signature to a Java ASN.1 signature byte array.private booleanDSAEngine.verifySig(Signature signature, SimpleDataStructure hash, SigningPublicKey verifyingKey) Verify using DSA-SHA1 or Syndie DSA-SHA256 ONLY.booleanDSAEngine.verifySignature(Signature signature, byte[] signedData, int offset, int size, SigningPublicKey verifyingKey) Verify using any sig type as of 0.9.12 (DSA only prior to that).booleanDSAEngine.verifySignature(Signature signature, byte[] signedData, SigningPublicKey verifyingKey) Verify a signature using any supported signature type.booleanDSAEngine.verifySignature(Signature signature, InputStream in, SigningPublicKey verifyingKey) Verify using DSA-SHA1 ONLY.booleanDSAEngine.verifySignature(Signature signature, SHA1Hash hash, SigningPublicKey verifyingKey) Verify using DSA-SHA1 ONLY.booleanDSAEngine.verifySignature(Signature signature, Hash hash, SigningPublicKey verifyingKey) Nonstandard.booleanDSAEngine.verifySignature(Signature signature, SimpleDataStructure hash, PublicKey pubKey) Generic signature type.booleanDSAEngine.verifySignature(Signature signature, SimpleDataStructure hash, SigningPublicKey verifyingKey) Generic signature type.Uses of Signature in net.i2p.data
Fields in net.i2p.data declared as SignatureModifier and TypeFieldDescriptionprotected SignatureLeaseSet2._offlineSignatureOffline signature.private SignaturePrivateKeyFile._offlineSignatureSignature made by the offline key, if any.protected SignatureDatabaseEntry._signatureCryptographic signature.Methods in net.i2p.data that return SignatureModifier and TypeMethodDescriptionPrivateKeyFile.getOfflineSignature()Offline signature.DatabaseEntry.getSignature()Retrieve the proof that the identity stands behind the info here.static SignatureLeaseSet2.offlineSign(long expires, SigningPublicKey transientSPK, SigningPrivateKey priv) Generate a Signature to pass toLeaseSet2.setOfflineSignature(long, SigningPublicKey, Signature).Methods in net.i2p.data with parameters of type SignatureModifier and TypeMethodDescriptionstatic booleanPrivateKeyFile.checkSignature(Signature s, byte[] data, SigningPublicKey spk) Check a signature against data with a public key.voidPrivateKeyFile.setOfflineData(long expires, SigningPublicKey transientPub, Signature sig, SigningPrivateKey transientPriv) Side effect - zeroes out the current signing private key.booleanLeaseSet2.setOfflineSignature(long expires, SigningPublicKey transientSPK, Signature offlineSig) Destination must be previously set.voidDatabaseEntry.setSignature(Signature signature) Configure the proof that the entity stands behind the info here.Uses of Signature in net.i2p.data.i2cp
Fields in net.i2p.data.i2cp declared as SignatureModifier and TypeFieldDescriptionprivate SignatureSessionConfig._signatureSignature authorizing this session.Methods in net.i2p.data.i2cp that return SignatureModifier and TypeMethodDescriptionSessionConfig.getOfflineSignature()The offline signature parsed from the "offlineSignature" session option.SessionConfig.getSignature()Return the signature authenticating this session authorization, or null.Methods in net.i2p.data.i2cp with parameters of type SignatureModifier and TypeMethodDescriptionvoidSessionConfig.setOfflineSignature(long expires, SigningPublicKey transientSPK, Signature offlineSig) Set the offline signing data.voidSessionConfig.setSignature(Signature sig) Signature for this session authorization.Uses of Signature in net.i2p.router.transport.udp
Methods in net.i2p.router.transport.udp that return SignatureModifier and TypeMethodDescriptionstatic SignatureSSU2Util.sign(I2PAppContext ctx, byte[] prologue, Hash h, Hash h2, byte[] data, int datalen, SigningPrivateKey spk) Sign the relay or peer test data, using the prologue and hash as the initial data, and then the provided data.Uses of Signature in net.i2p.util
Methods in net.i2p.util that return SignatureModifier and TypeMethodDescriptionByteArrayStream.sign(SigningPrivateKey signingKey) Signs the written data.ByteArrayStream.sign(I2PAppContext ctx, SigningPrivateKey signingKey) Signs the written data.Methods in net.i2p.util with parameters of type SignatureModifier and TypeMethodDescriptionbooleanByteArrayStream.verifySignature(Signature signature, SigningPublicKey verifyingKey) Verifies the signature of the written data.booleanByteArrayStream.verifySignature(I2PAppContext ctx, Signature signature, SigningPublicKey verifyingKey) Verifies the signature of the written data.