Uses of Class
net.i2p.data.Signature
Package
Description
Interfaces and factories for
the base I2P SDK used to develop applications that communicate
through I2P.
Implements the base I2P SDK for developing applications that communicate
through I2P.
Implementation of a TCP-like (reliable, authenticated, in order) set of sockets for
communicating over the IP-like (unreliable, unauthenticated, unordered) I2P
messages.
These classes provide a number of low-level cryptographic routines.
These classes define the common data structures used by the various
I2P protocols.
The Invisible Internet Client Protocol (I2CP) allows applications simplified access to
the I2P network without requiring them to deal with the issues involved with the
Invisible Internet Network Protocol (I2NP).
The UDP transport (also known as 'SSU transport') allows passing I2P messages on top of UDP.
These classes define the several useful utilities used
throughout the router and applications.
-
Uses of Signature in net.i2p.client
-
Uses of Signature in net.i2p.client.impl
-
Uses of Signature in net.i2p.client.streaming.impl
Modifier and TypeFieldDescriptionprotected Signature
Packet._offlineSignature
protected Signature
Packet._optionSignature
Modifier and TypeMethodDescriptionPacket.getOptionalSignature()
The signature on the packet (only included if the flag for it is set) Warning, may be typed wrong on incoming packets for EdDSA before verifySignature() is called.Modifier and TypeMethodDescriptionvoid
Packet.setOptionalSignature
(Signature sig) This also sets flag FLAG_SIGNATURE_INCLUDED -
Uses of Signature in net.i2p.crypto
Modifier and TypeMethodDescriptionstatic Signature
SigUtil.fromJavaSig
(byte[] asn, SigType type) 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 givenSigningPrivateKey
to sign the given input file along with its version string using DSA.Modifier and TypeMethodDescriptionstatic byte[]
boolean
DSAEngine.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)boolean
DSAEngine.verifySignature
(Signature signature, byte[] signedData, SigningPublicKey verifyingKey) Verify using any sig type.boolean
DSAEngine.verifySignature
(Signature signature, InputStream in, SigningPublicKey verifyingKey) Verify using DSA-SHA1 ONLYboolean
DSAEngine.verifySignature
(Signature signature, SHA1Hash hash, SigningPublicKey verifyingKey) Verify using DSA-SHA1 ONLYboolean
DSAEngine.verifySignature
(Signature signature, Hash hash, SigningPublicKey verifyingKey) Nonstandard.boolean
DSAEngine.verifySignature
(Signature signature, SimpleDataStructure hash, PublicKey pubKey) Generic signature type.boolean
DSAEngine.verifySignature
(Signature signature, SimpleDataStructure hash, SigningPublicKey verifyingKey) Generic signature type. -
Uses of Signature in net.i2p.data
Modifier and TypeFieldDescriptionprotected Signature
LeaseSet2._offlineSignature
protected Signature
DatabaseEntry._signature
Modifier and TypeMethodDescriptionPrivateKeyFile.getOfflineSignature()
DatabaseEntry.getSignature()
Retrieve the proof that the identity stands behind the info herestatic Signature
LeaseSet2.offlineSign
(long expires, SigningPublicKey transientSPK, SigningPrivateKey priv) Generate a Signature to pass to setOfflineSignature()Modifier and TypeMethodDescriptionstatic boolean
PrivateKeyFile.checkSignature
(Signature s, byte[] data, SigningPublicKey spk) void
PrivateKeyFile.setOfflineData
(long expires, SigningPublicKey transientPub, Signature sig, SigningPrivateKey transientPriv) Side effect - zeroes out the current signing private keyboolean
LeaseSet2.setOfflineSignature
(long expires, SigningPublicKey transientSPK, Signature offlineSig) Destination must be previously set.void
DatabaseEntry.setSignature
(Signature signature) Configure the proof that the entity stands behind the info here -
Uses of Signature in net.i2p.data.i2cp
Modifier and TypeMethodDescriptionSessionConfig.getOfflineSignature()
SessionConfig.getSignature()
Modifier and TypeMethodDescriptionvoid
SessionConfig.setOfflineSignature
(long expires, SigningPublicKey transientSPK, Signature offlineSig) Set the offline signing data.void
SessionConfig.setSignature
(Signature sig) -
Uses of Signature in net.i2p.router.transport.udp
Modifier and TypeMethodDescriptionInboundEstablishState.getSentSignature()
OutboundEstablishState.getSentSignature()
static Signature
SSU2Util.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
Modifier and TypeMethodDescriptionByteArrayStream.sign
(SigningPrivateKey signingKey) Sign the written dataByteArrayStream.sign
(I2PAppContext ctx, SigningPrivateKey signingKey) Sign the written dataModifier and TypeMethodDescriptionboolean
ByteArrayStream.verifySignature
(Signature signature, SigningPublicKey verifyingKey) Verify the written databoolean
ByteArrayStream.verifySignature
(I2PAppContext ctx, Signature signature, SigningPublicKey verifyingKey) Verify the written data