Packages that use SigningPrivateKey
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. Naming service for resolving human-readable names (such as ident.i2p) into I2P destinations, providing a standard interface without JNDI complexity.
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).
The I2PTunnel configuration web interface (i2ptunnel.war): servlets and helpers for creating and editing tunnels.
The I2P router application handles I2P network communication.
Router-specific cryptography: ElGamal+AES garlic encryption (ElGamalAESEngine), session key and tag caching for repeated peer communication (TransientSessionKeyManager), router-family shared keys (FamilyKeyCrypto), and the ratchet and pqc subpackages.
The I2P startup package loads configuration when I2P is started.
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 SigningPrivateKey in net.i2p.client
Methods in net.i2p.client that return SigningPrivateKeyModifier and TypeMethodDescriptionI2PSession.getPrivateKey()Retrieve the signing SigningPrivateKey associated with the Destination.Uses of SigningPrivateKey in net.i2p.client.datagram
Fields in net.i2p.client.datagram declared as SigningPrivateKeyModifier and TypeFieldDescriptionprivate SigningPrivateKeyI2PDatagramMaker.sxPrivKeyKey that signs the datagrams.Uses of SigningPrivateKey in net.i2p.client.impl
Fields in net.i2p.client.impl declared as SigningPrivateKeyModifier and TypeFieldDescriptionprivate SigningPrivateKeyI2PSessionImpl._signingPrivateKeyPrivate key for signing.private final SigningPrivateKeyRequestLeaseSetMessageHandler.LeaseInfo._signingPrivKeyThe signing private key of the destination.Methods in net.i2p.client.impl that return SigningPrivateKeyModifier and TypeMethodDescriptionI2PSessionImpl.getPrivateKey()Retrieve the signing SigningPrivateKey.RequestLeaseSetMessageHandler.LeaseInfo.getSigningPrivateKey()Signing private key; null for LS2.Methods in net.i2p.client.impl with parameters of type SigningPrivateKeyModifier and TypeMethodDescriptionvoidI2CPMessageProducer.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.Constructors in net.i2p.client.impl with parameters of type SigningPrivateKeyModifierConstructorDescriptionLeaseInfo(List<PrivateKey> privKeys, SigningPrivateKey signingPrivKey) Existing keys, LS1 only.Uses of SigningPrivateKey in net.i2p.client.naming
Methods in net.i2p.client.naming with parameters of type SigningPrivateKeyModifier and TypeMethodDescriptionvoidHostTxtEntry.sign(SigningPrivateKey spk) Sign and set the "sig" property Must have been constructed with non-null properties.voidHostTxtEntry.signInner(SigningPrivateKey spk) Sign and set the "oldsig" property Must have been constructed with non-null properties.private voidHostTxtEntry.signIt(SigningPrivateKey spk, String sigprop) Sign the entry and set the specified signature property.voidHostTxtEntry.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
Subclasses of SigningPrivateKey in net.i2p.cryptoModifier and TypeClassDescription(package private) final classA SigningPrivateKey that retains the Chinese Remainder Theorem parameters, so it can be converted back to a Java CRT key.Fields in net.i2p.crypto with type parameters of type SigningPrivateKeyModifier and TypeFieldDescriptionprivate static final Map<SigningPrivateKey, ECPrivateKey> SigUtil._ECPrivkeyCacheConverted EC private keys, by signing key.private static final Map<SigningPrivateKey, EdDSAPrivateKey> SigUtil._EdPrivkeyCacheConverted EdDSA private keys, by signing key.Methods in net.i2p.crypto that return SigningPrivateKeyModifier and TypeMethodDescriptionstatic SigningPrivateKeyBlinding.blind(SigningPrivateKey key, SigningPrivateKey alpha) Only for SigTypes EdDSA_SHA512_Ed25519 and RedDSA_SHA512_Ed25519.static SigningPrivateKeySigUtil.fromJavaKey(DSAPrivateKey pk) Convert a Java DSAPrivateKey to an I2P DSA private key.static SigningPrivateKeySigUtil.fromJavaKey(ECPrivateKey pk, SigType type) Convert a Java ECPrivateKey to an I2P SigningPrivateKey of the given type.static SigningPrivateKeySigUtil.fromJavaKey(RSAPrivateKey pk, SigType type) Convert a Java RSAPrivateKey to an I2P RSA private key of the given type.static SigningPrivateKeySigUtil.fromJavaKey(PrivateKey pk) Use if SigType is unknown.static SigningPrivateKeySigUtil.fromJavaKey(PrivateKey pk, SigType type) Use if SigType is known.static SigningPrivateKeySigUtil.fromJavaKey(EdDSAPrivateKey pk, SigType type) Convert a Java EdDSAPrivateKey to an I2P SigningPrivateKey.static SigningPrivateKeyBlinding.generateAlpha(I2PAppContext ctx, SigningPublicKey destspk, String secret) Generate alpha for current time.static SigningPrivateKeyBlinding.generateAlpha(I2PAppContext ctx, SigningPublicKey destspk, String secret, long now) Generate alpha for the given time.static SigningPrivateKeyBlinding.unblind(SigningPrivateKey key, SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519.Methods in net.i2p.crypto with parameters of type SigningPrivateKeyModifier and TypeMethodDescriptionprivate SignatureDSAEngine.altSign(byte[] data, int offset, int len, SigningPrivateKey privateKey) Generic 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 SigningPrivateKeyBlinding.blind(SigningPrivateKey key, SigningPrivateKey alpha) Only for SigTypes EdDSA_SHA512_Ed25519 and RedDSA_SHA512_Ed25519.static SigningPublicKeyBlinding.blind(SigningPublicKey key, SigningPrivateKey alpha) Only for SigTypes EdDSA_SHA512_Ed25519 and RedDSA_SHA512_Ed25519.private static ECPrivateKeySigUtil.cvtToJavaECKey(SigningPrivateKey pk) Convert an I2P EC private key to a Java ECPrivateKey without caching.private static EdDSAPrivateKeySigUtil.cvtToJavaEdDSAKey(SigningPrivateKey pk) Convert an I2P EdDSA or RedDSA private key to a Java EdDSAPrivateKey without caching.private static Object[]SelfSignedGenerator.generate(PublicKey jpub, PrivateKey jpriv, SigningPrivateKey priv, SigType type, String cname, Set<String> altNames, String ou, String o, String l, String st, String c, int validDays) Create a self-signed certificate with the given keypair.static X509CertificateSelfSignedGenerator.generate(SigningPrivateKey priv, String cname, int validDays) Create a self-signed certificate for the existing private key.private static X509CRLSelfSignedGenerator.generateCRL(X509Certificate cert, int validDays, int crlNum, byte[] sigoid, SigningPrivateKey priv) Generate a CRL for the given cert, signed with the given private key.static SigningPublicKeyKeyGenerator.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 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.static DSAPrivateKeySigUtil.toJavaDSAKey(SigningPrivateKey pk) Convert an I2P DSA private key to a Java DSAPrivateKey.static ECPrivateKeySigUtil.toJavaECKey(SigningPrivateKey pk) Convert an I2P EC private key to a Java ECPrivateKey, with caching.static EdDSAPrivateKeySigUtil.toJavaEdDSAKey(SigningPrivateKey pk) Convert an I2P EdDSA private key to a Java EdDSAPrivateKey, with caching.static PrivateKeySigUtil.toJavaKey(SigningPrivateKey pk) Convert an I2P SigningPrivateKey to a Java PrivateKey, dispatching by algorithm.static RSAPrivateKeySigUtil.toJavaRSAKey(SigningPrivateKey pk) Convert an I2P RSA private key to a Java RSAPrivateKey.static SigningPrivateKeyBlinding.unblind(SigningPrivateKey key, SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519.Uses of SigningPrivateKey in net.i2p.data
Fields in net.i2p.data declared as SigningPrivateKeyModifier and TypeFieldDescriptionprivate SigningPrivateKeyBlindData._alphaThe blinding private key, for the server side.private SigningPrivateKeyEncryptedLeaseSet._alphaAlpha signing private key.private SigningPrivateKeyPrivateKeyFile._transientSigningPrivKeyThe transient private signing key.protected SigningPrivateKeyPrivateKeyFile.signingPrivKeyThe signing private key.Methods in net.i2p.data that return SigningPrivateKeyModifier and TypeMethodDescriptionSigningPrivateKey.blind(SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519.BlindData.getAlpha()Gets the alpha value for the current day.PrivateKeyFile.getSigningPrivKey()Signing private key.PrivateKeyFile.getTransientSigningPrivKey()Transient signing private key.Methods in net.i2p.data with parameters of type SigningPrivateKeyModifier and TypeMethodDescriptionSigningPrivateKey.blind(SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519.SigningPublicKey.blind(SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519.static SignatureLeaseSet2.offlineSign(long expires, SigningPublicKey transientSPK, SigningPrivateKey priv) Generate a Signature to pass toLeaseSet2.setOfflineSignature(long, SigningPublicKey, Signature).voidPrivateKeyFile.setOfflineData(long expires, SigningPublicKey transientPub, Signature sig, SigningPrivateKey transientPriv) Side effect - zeroes out the current signing private key.voidDatabaseEntry.sign(SigningPrivateKey key) Sign the structure using the supplied signing key.voidEncryptedLeaseSet.sign(SigningPrivateKey key) Sign the structure using the supplied signing key.voidEncryptedLeaseSet.sign(SigningPrivateKey key, int authType, List<? extends SimpleDataStructure> clientKeys) Sign the structure using the supplied signing key.voidLeaseSet2.sign(SigningPrivateKey key) Sign the structure using the supplied signing key.Constructors in net.i2p.data with parameters of type SigningPrivateKeyModifierConstructorDescriptionPrivateKeyFile(File file, Destination dest, PrivateKey pk, SigningPrivateKey spk) Create a new PrivateKeyFile with a destination and keys.PrivateKeyFile(File file, PublicKey pubkey, SigningPublicKey spubkey, Certificate cert, PrivateKey pk, SigningPrivateKey spk) Create a new PrivateKeyFile from individual key components.PrivateKeyFile(File file, PublicKey pubkey, SigningPublicKey spubkey, Certificate cert, PrivateKey pk, SigningPrivateKey spk, byte[] padding) Create a new PrivateKeyFile from individual key components with padding.Uses of SigningPrivateKey in net.i2p.data.i2cp
Fields in net.i2p.data.i2cp declared as SigningPrivateKeyModifier and TypeFieldDescriptionprivate SigningPrivateKeyCreateLeaseSetMessage._signingPrivateKeyThe signing private key.Methods in net.i2p.data.i2cp that return SigningPrivateKeyModifier and TypeMethodDescriptionCreateLeaseSetMessage.getSigningPrivateKey()Signing private key for the lease set.Methods in net.i2p.data.i2cp with parameters of type SigningPrivateKeyModifier and TypeMethodDescriptionvoidCreateLeaseSetMessage.setSigningPrivateKey(SigningPrivateKey key) Signing private key for the lease set.voidSessionConfig.signSessionConfig(SigningPrivateKey signingKey) Sign the structure using the supplied private key.Uses of SigningPrivateKey in net.i2p.i2ptunnel.web
Methods in net.i2p.i2ptunnel.web that return SigningPrivateKeyModifier and TypeMethodDescriptionEditBean.getSigningPrivateKey(int tunnel) The signing private key for the tunnel.Uses of SigningPrivateKey in net.i2p.router
Fields in net.i2p.router declared as SigningPrivateKeyModifier and TypeFieldDescriptionprivate final SigningPrivateKeyLeaseSetKeys._revocationKeyKey that revokes the lease set.private SigningPrivateKeyKeyManager._signingPrivateKeyOur router's signing private key.Methods in net.i2p.router that return SigningPrivateKeyModifier and TypeMethodDescriptionLeaseSetKeys.getRevocationKey()Key with which a LeaseSet can be revoked (by republishing it with no Leases)KeyManager.getSigningPrivateKey()Router key.Methods in net.i2p.router with parameters of type SigningPrivateKeyModifier and TypeMethodDescriptionvoidKeyManager.registerKeys(Destination dest, SigningPrivateKey leaseRevocationPrivateKey, List<PrivateKey> endpointDecryptionKeys) Client with multiple keys.voidKeyManager.registerKeys(Destination dest, SigningPrivateKey leaseRevocationPrivateKey, PrivateKey endpointDecryptionKey) Client with a single key.voidKeyManager.setKeys(PublicKey key1, PrivateKey key2, SigningPublicKey key3, SigningPrivateKey key4) Configure the router's keys.Constructors in net.i2p.router with parameters of type SigningPrivateKeyModifierConstructorDescriptionLeaseSetKeys(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.crypto
Fields in net.i2p.router.crypto declared as SigningPrivateKeyModifier and TypeFieldDescriptionprivate final SigningPrivateKeyFamilyKeyCrypto._privkeyOur family signing private key.Methods in net.i2p.router.crypto that return SigningPrivateKeyModifier and TypeMethodDescriptionprivate SigningPrivateKeyFamilyKeyCrypto.getPrivKey(File ks) Load the private key for this family from the keystore.private SigningPrivateKeyFamilyKeyCrypto.initialize()Create (if necessary) and load the key store, then run.Uses of SigningPrivateKey in net.i2p.router.startup
Fields in net.i2p.router.startup declared as SigningPrivateKeyModifier and TypeFieldDescriptionfinal SigningPrivateKeyLoadRouterInfoJob.KeyData.signingPrivateKeySigning private key for this router.Constructors in net.i2p.router.startup with parameters of type SigningPrivateKeyModifierConstructorDescriptionKeyData(RouterIdentity ri, PrivateKey pk, SigningPrivateKey spk) Pairs a router identity with the private keys that match it.Uses of SigningPrivateKey in net.i2p.router.transport.udp
Methods in net.i2p.router.transport.udp with parameters of type SigningPrivateKeyModifier 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 block.static 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 block.static 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 block.static 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 SigningPrivateKey in net.i2p.util
Methods in net.i2p.util with parameters of type SigningPrivateKeyModifier and TypeMethodDescriptionByteArrayStream.sign(SigningPrivateKey signingKey) Signs the written data.ByteArrayStream.sign(I2PAppContext ctx, SigningPrivateKey signingKey) Signs the written data.