Uses of Class
net.i2p.data.SigningPrivateKey
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.
Provides a standard way for querying the local naming service to resolve a
name into a
Destination
(without the complexity of JNDI).
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 UI for adding tunnels and editing their configurations,
implemented as a webapp packaged in i2ptunnel.war.
The I2P router application handles the I2P network communication.
The I2P startup package loads the configuration when I2P is started.
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 SigningPrivateKey in net.i2p.client
Modifier and TypeMethodDescriptionI2PSession.getPrivateKey()
Retrieve the signing SigningPrivateKey associated with the Destination. -
Uses of SigningPrivateKey in net.i2p.client.impl
Modifier and TypeMethodDescriptionI2PSessionImpl.getPrivateKey()
Retrieve the signing SigningPrivateKey.Modifier and TypeMethodDescriptionvoid
I2CPMessageProducer.createLeaseSet
(I2PSessionImpl session, LeaseSet leaseSet, SigningPrivateKey signingPriv, List<PrivateKey> privs) In response to a RequestLeaseSet Message from the router, send a CreateLeaseset Message back to the router. -
Uses of SigningPrivateKey in net.i2p.client.naming
Modifier and TypeMethodDescriptionvoid
HostTxtEntry.sign
(SigningPrivateKey spk) Sign and set the "sig" property Must have been constructed with non-null properties.void
HostTxtEntry.signInner
(SigningPrivateKey spk) Sign and set the "oldsig" property Must have been constructed with non-null properties.void
HostTxtEntry.signRemove
(SigningPrivateKey spk) Sign as a "remove" line #!dest=dest#name=name#k1=v1#sig=sig...] Must have been constructed with non-null properties. -
Uses of SigningPrivateKey in net.i2p.crypto
Modifier and TypeClassDescription(package private) final class
A SigningPrivateKey that retains the Chinese Remainder Theorem parameters, so it can be converted back to a Java CRT key.Modifier and TypeMethodDescriptionstatic SigningPrivateKey
Blinding.blind
(SigningPrivateKey key, SigningPrivateKey alpha) Only for SigTypes EdDSA_SHA512_Ed25519 and RedDSA_SHA512_Ed25519.static SigningPrivateKey
SigUtil.fromJavaKey
(DSAPrivateKey pk) static SigningPrivateKey
SigUtil.fromJavaKey
(ECPrivateKey pk, SigType type) static SigningPrivateKey
SigUtil.fromJavaKey
(RSAPrivateKey pk, SigType type) As of 0.9.31, if pk is a RSAPrivateCrtKey, this will return a RSASigningPrivateCrtKey.static SigningPrivateKey
SigUtil.fromJavaKey
(PrivateKey pk) Use if SigType is unknown.static SigningPrivateKey
SigUtil.fromJavaKey
(PrivateKey pk, SigType type) Use if SigType is known.static SigningPrivateKey
SigUtil.fromJavaKey
(EdDSAPrivateKey pk, SigType type) static SigningPrivateKey
Blinding.generateAlpha
(I2PAppContext ctx, SigningPublicKey destspk, String secret) Generate alpha for current time.static SigningPrivateKey
Blinding.generateAlpha
(I2PAppContext ctx, SigningPublicKey destspk, String secret, long now) Generate alpha for the given time.static SigningPrivateKey
Blinding.unblind
(SigningPrivateKey key, SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519.Modifier and TypeMethodDescriptionstatic SigningPrivateKey
Blinding.blind
(SigningPrivateKey key, SigningPrivateKey alpha) Only for SigTypes EdDSA_SHA512_Ed25519 and RedDSA_SHA512_Ed25519.static SigningPublicKey
Blinding.blind
(SigningPublicKey key, SigningPrivateKey alpha) Only for SigTypes EdDSA_SHA512_Ed25519 and RedDSA_SHA512_Ed25519.static X509Certificate
SelfSignedGenerator.generate
(SigningPrivateKey priv, String cname, int validDays) Create a self-signed certificate for the existing private key.static SigningPublicKey
KeyGenerator.getSigningPublicKey
(SigningPrivateKey priv) Convert a SigningPrivateKey to a SigningPublicKey.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, SigningPrivateKey signingKey) Generic signature type.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.static DSAPrivateKey
SigUtil.toJavaDSAKey
(SigningPrivateKey pk) static ECPrivateKey
SigUtil.toJavaECKey
(SigningPrivateKey pk) static EdDSAPrivateKey
SigUtil.toJavaEdDSAKey
(SigningPrivateKey pk) static PrivateKey
SigUtil.toJavaKey
(SigningPrivateKey pk) static RSAPrivateKey
SigUtil.toJavaRSAKey
(SigningPrivateKey pk) As of 0.9.31, if pk is a RSASigningPrivateCrtKey, this will return a RSAPrivateCrtKey.static SigningPrivateKey
Blinding.unblind
(SigningPrivateKey key, SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519. -
Uses of SigningPrivateKey in net.i2p.data
Modifier and TypeMethodDescriptionSigningPrivateKey.blind
(SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519BlindData.getAlpha()
PrivateKeyFile.getSigningPrivKey()
PrivateKeyFile.getTransientSigningPrivKey()
Modifier and TypeMethodDescriptionSigningPrivateKey.blind
(SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519SigningPublicKey.blind
(SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519static Signature
LeaseSet2.offlineSign
(long expires, SigningPublicKey transientSPK, SigningPrivateKey priv) Generate a Signature to pass to setOfflineSignature()void
PrivateKeyFile.setOfflineData
(long expires, SigningPublicKey transientPub, Signature sig, SigningPrivateKey transientPriv) Side effect - zeroes out the current signing private keyvoid
DatabaseEntry.sign
(SigningPrivateKey key) Sign the structure using the supplied signing keyvoid
EncryptedLeaseSet.sign
(SigningPrivateKey key) Sign the structure using the supplied signing key.void
EncryptedLeaseSet.sign
(SigningPrivateKey key, int authType, List<? extends SimpleDataStructure> clientKeys) Sign the structure using the supplied signing key.void
LeaseSet2.sign
(SigningPrivateKey key) Sign the structure using the supplied signing key.ModifierConstructorDescriptionPrivateKeyFile
(File file, Destination dest, PrivateKey pk, SigningPrivateKey spk) PrivateKeyFile
(File file, PublicKey pubkey, SigningPublicKey spubkey, Certificate cert, PrivateKey pk, SigningPrivateKey spk) PrivateKeyFile
(File file, PublicKey pubkey, SigningPublicKey spubkey, Certificate cert, PrivateKey pk, SigningPrivateKey spk, byte[] padding) -
Uses of SigningPrivateKey in net.i2p.data.i2cp
Modifier and TypeMethodDescriptionvoid
CreateLeaseSetMessage.setSigningPrivateKey
(SigningPrivateKey key) void
SessionConfig.signSessionConfig
(SigningPrivateKey signingKey) Sign the structure using the supplied private key -
Uses of SigningPrivateKey in net.i2p.i2ptunnel.web
-
Uses of SigningPrivateKey in net.i2p.router
Modifier and TypeMethodDescriptionLeaseSetKeys.getRevocationKey()
Key with which a LeaseSet can be revoked (by republishing it with no Leases) Deprecated, unusedKeyManager.getSigningPrivateKey()
Router keyModifier and TypeMethodDescriptionvoid
KeyManager.registerKeys
(Destination dest, SigningPrivateKey leaseRevocationPrivateKey, List<PrivateKey> endpointDecryptionKeys) Client with multiple keysvoid
KeyManager.registerKeys
(Destination dest, SigningPrivateKey leaseRevocationPrivateKey, PrivateKey endpointDecryptionKey) Client with a single keyvoid
KeyManager.setKeys
(PublicKey key1, PrivateKey key2, SigningPublicKey key3, SigningPrivateKey key4) Configure the router's keys.ModifierConstructorDescriptionLeaseSetKeys
(Destination dest, SigningPrivateKey revocationKey, List<PrivateKey> decryptionKeys) Client with multiple keysLeaseSetKeys
(Destination dest, SigningPrivateKey revocationKey, PrivateKey decryptionKey) Client with a single key -
Uses of SigningPrivateKey in net.i2p.router.startup
Modifier and TypeFieldDescriptionfinal SigningPrivateKey
LoadRouterInfoJob.KeyData.signingPrivateKey
-
Uses of SigningPrivateKey in net.i2p.router.transport.udp
Modifier and TypeMethodDescriptionstatic byte[]
SSU2Util.createPeerTestData
(I2PAppContext ctx, Hash h, Hash h2, PeerTestState.Role role, long nonce, byte[] ip, int port, SigningPrivateKey spk) Make the data for the peer test blockstatic byte[]
SSU2Util.createRelayRequestData
(I2PAppContext ctx, Hash h, Hash h2, long nonce, long tag, byte[] ip, int port, SigningPrivateKey spk) Make the data for the relay request blockstatic byte[]
SSU2Util.createRelayResponseData
(I2PAppContext ctx, Hash h, int code, long nonce, byte[] ip, int port, SigningPrivateKey spk, long token) Make the data for the relay response blockstatic 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 SigningPrivateKey in net.i2p.util
Modifier and TypeMethodDescriptionByteArrayStream.sign
(SigningPrivateKey signingKey) Sign the written dataByteArrayStream.sign
(I2PAppContext ctx, SigningPrivateKey signingKey) Sign the written data