Uses of Class
net.i2p.data.SigningPublicKey
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 I2P router application handles the I2P network communication.
The network database, including implementation of floodfills.
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 SigningPublicKey in net.i2p.client
-
Uses of SigningPublicKey in net.i2p.client.impl
Modifier and TypeFieldDescriptionprotected SigningPublicKey
I2PSessionImpl._transientSigningPublicKey
-
Uses of SigningPublicKey in net.i2p.client.streaming.impl
Modifier and TypeMethodDescriptionConnection.getRemoteSPK()
The key to verify signatures with.Packet.getTransientSPK()
Only if an offline signing block was included, else nullModifier and TypeMethodDescriptionvoid
Connection.setRemoteTransientSPK
(SigningPublicKey transientSPK) boolean
Packet.verifySignature
(I2PAppContext ctx, SigningPublicKey altSPK, byte[] buffer) Determine whether the signature on the data is valid. -
Uses of SigningPublicKey in net.i2p.crypto
Modifier and TypeMethodDescriptionstatic SigningPublicKey
Blinding.blind
(SigningPublicKey key, SigningPrivateKey alpha) Only for SigTypes EdDSA_SHA512_Ed25519 and RedDSA_SHA512_Ed25519.static SigningPublicKey
SigUtil.fromJavaKey
(DSAPublicKey pk) static SigningPublicKey
SigUtil.fromJavaKey
(ECPublicKey pk, SigType type) static SigningPublicKey
SigUtil.fromJavaKey
(RSAPublicKey pk, SigType type) static SigningPublicKey
SigUtil.fromJavaKey
(PublicKey pk) Use if SigType is unknown.static SigningPublicKey
SigUtil.fromJavaKey
(PublicKey pk, SigType type) Use if SigType is known.static SigningPublicKey
SigUtil.fromJavaKey
(EdDSAPublicKey pk, SigType type) static SigningPublicKey
KeyGenerator.getSigningPublicKey
(SigningPrivateKey priv) Convert a SigningPrivateKey to a SigningPublicKey.Modifier and TypeMethodDescriptionstatic SigningPublicKey
Blinding.blind
(SigningPublicKey key, SigningPrivateKey alpha) Only for SigTypes EdDSA_SHA512_Ed25519 and RedDSA_SHA512_Ed25519.static String
Blinding.encode
(SigningPublicKey key) Encode a public key as a new-format b32 address.static String
Blinding.encode
(SigningPublicKey key, boolean requireSecret, boolean requireAuth) Encode a public key as a new-format b32 address.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 DSAPublicKey
SigUtil.toJavaDSAKey
(SigningPublicKey pk) static ECPublicKey
SigUtil.toJavaECKey
(SigningPublicKey pk) static EdDSAPublicKey
SigUtil.toJavaEdDSAKey
(SigningPublicKey pk) static PublicKey
SigUtil.toJavaKey
(SigningPublicKey pk) static RSAPublicKey
SigUtil.toJavaRSAKey
(SigningPublicKey pk) Deprecated.unusedboolean
TrustedUpdate.verify
(File signedFile, SigningPublicKey signingPublicKey) Verifies the DSA signature of a signed update file.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, SigningPublicKey verifyingKey) Generic signature type. -
Uses of SigningPublicKey in net.i2p.data
Modifier and TypeFieldDescriptionprotected SigningPublicKey
KeysAndCert._signingKey
protected SigningPublicKey
LeaseSet._signingKey
protected SigningPublicKey
LeaseSet2._transientSigningPublicKey
Modifier and TypeMethodDescriptionSigningPublicKey.blind
(SigningPrivateKey alpha) Only for SigType EdDSA_SHA512_Ed25519static SigningPublicKey
SigningPublicKey.create
(byte[] data, int off) Pull from cache or return new.static SigningPublicKey
SigningPublicKey.create
(InputStream in) Pull from cache or return newBlindData.getBlindedPubKey()
LeaseSet.getSigningKey()
The revocation key.protected SigningPublicKey
DatabaseEntry.getSigningPublicKey()
Identical to getDestination().getSigningPublicKey() in LeaseSet, and getIdentity().getSigningPublicKey() in RouterInfo.protected SigningPublicKey
EncryptedLeaseSet.getSigningPublicKey()
Overridden to return the blinded key so super.verifySignature() will work.KeysAndCert.getSigningPublicKey()
LeaseSet2.getTransientSigningKey()
PrivateKeyFile.getTransientSigningPubKey()
BlindData.getUnblindedPubKey()
SigningPrivateKey.toPublic()
Converts this signing private key to its public equivalent.SigningPublicKey.toTypedKey
(KeyCertificate kcert) Up-convert this from an untyped (type 0) SPK to a typed SPK based on the Key Cert given.Modifier and TypeMethodDescriptionstatic boolean
PrivateKeyFile.checkSignature
(Signature s, byte[] data, SigningPublicKey spk) static 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 keyboolean
LeaseSet2.setOfflineSignature
(long expires, SigningPublicKey transientSPK, Signature offlineSig) Destination must be previously set.void
EncryptedLeaseSet.setSigningKey
(SigningPublicKey spk) Overridden to set the blinded key.void
LeaseSet.setSigningKey
(SigningPublicKey key) The revocation key.void
LeaseSet2.setSigningKey
(SigningPublicKey key) The revocation key.void
KeysAndCert.setSigningPublicKey
(SigningPublicKey key) protected boolean
LeaseSet2.verifyOfflineSignature
(SigningPublicKey spk) boolean
LeaseSet.verifySignature
(SigningPublicKey signingKey) Deprecated.revocation unusedModifierConstructorDescriptionBlindData
(I2PAppContext ctx, SigningPublicKey spk, SigType blindType, String secret) BlindData
(I2PAppContext ctx, SigningPublicKey spk, SigType blindType, String secret, int authType, PrivateKey authKey) A KeyCertificate with crypto type 0 (ElGamal) and the signature type and extra data from the given public key.KeyCertificate
(SigningPublicKey spk, PublicKey pk) A KeyCertificate with enc type from the given public key, and the signature type and extra data from the given public key.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 SigningPublicKey in net.i2p.data.i2cp
Modifier and TypeMethodDescriptionBlindingInfoMessage.getSigningPublicKey()
SessionConfig.getTransientSigningPublicKey()
Modifier and TypeMethodDescriptionvoid
SessionConfig.setOfflineSignature
(long expires, SigningPublicKey transientSPK, Signature offlineSig) Set the offline signing data.ModifierConstructorDescriptionBlindingInfoMessage
(SigningPublicKey s, SessionId id, int expiration, int authType, SigType blindType, PrivateKey privKey, String secret) -
Uses of SigningPublicKey in net.i2p.router
Modifier and TypeMethodDescriptionNetworkDatabaseFacade.getBlindData
(SigningPublicKey spk) boolean
NetworkDatabaseFacade.removeBlindData
(SigningPublicKey spk) For console ConfigKeyringHelpervoid
KeyManager.setKeys
(PublicKey key1, PrivateKey key2, SigningPublicKey key3, SigningPrivateKey key4) Configure the router's keys. -
Uses of SigningPublicKey in net.i2p.router.networkdb.kademlia
Modifier and TypeMethodDescriptionKademliaNetworkDatabaseFacade.getBlindData
(SigningPublicKey spk) BlindCache.getBlindedHash
(SigningPublicKey spk) The hash to lookup for a SPK known to be blinded.BlindCache.getData
(SigningPublicKey spk) The cached data or nullBlindCache.getReverseData
(SigningPublicKey spk) The cached data or nullboolean
BlindCache.removeBlindData
(SigningPublicKey spk) For console ConfigKeyringHelper.boolean
KademliaNetworkDatabaseFacade.removeBlindData
(SigningPublicKey spk) For console ConfigKeyringHelper -
Uses of SigningPublicKey in net.i2p.router.transport.udp
Modifier and TypeMethodDescriptionstatic boolean
SSU2Util.validateSig
(I2PAppContext ctx, byte[] prologue, Hash h, Hash h2, byte[] data, SigningPublicKey spk) Validate the signed relay or peer test data, using the prologue and hash as the initial data, and then the provided data which ends with a signature of the specified type. -
Uses of SigningPublicKey in net.i2p.util
Modifier and TypeMethodDescriptionboolean
ByteArrayStream.verifySignature
(Signature signature, SigningPublicKey verifyingKey) Verify the written databoolean
ByteArrayStream.verifySignature
(I2PAppContext ctx, Signature signature, SigningPublicKey verifyingKey) Verify the written data