| Package | Description |
|---|---|
| net.i2p.client | Interfaces and factories for the base I2P SDK used to develop applications that communicate through I2P. |
| net.i2p.client.impl | Internal implementation of the I2P client SDK, providing the client
side of the I2CP protocol for applications communicating through I2P. |
| net.i2p.client.naming | Naming service for resolving human-readable names to I2P destinations,
providing a standard interface without JNDI complexity. |
| net.i2p.crypto | Core cryptographic primitives and algorithms used throughout I2P. |
| net.i2p.data | These classes define the common data structures used by the various I2P protocols. |
| net.i2p.data.i2cp | 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). |
| net.i2p.i2ptunnel.web | Web-based user interface for managing I2PTunnel configurations, implemented
as a webapp packaged in i2ptunnel.war. |
| net.i2p.router | The I2P router application handles I2P network communication. |
| net.i2p.router.startup | The I2P startup package loads configuration when I2P is started. |
| net.i2p.router.transport.udp | The UDP transport (also known as 'SSU' or Secure Semi-reliable UDP transport)
for I2P, allowing I2P messages to be passed over UDP connections. |
| net.i2p.util | Core utility classes and helper functions used throughout the I2P router and applications. |
| Modifier and Type | Method and Description |
|---|---|
SigningPrivateKey | I2PSession.getPrivateKey()Retrieve the signing SigningPrivateKey associated with the Destination. |
| Modifier and Type | Method and Description |
|---|---|
SigningPrivateKey | I2PSessionImpl.getPrivateKey()Retrieve the signing SigningPrivateKey. |
| Modifier and Type | Method and Description |
|---|---|
void | I2CPMessageProducer.createLeaseSet(I2PSessionImpl session,
LeaseSet leaseSet,
SigningPrivateKey signingPriv,
List<PrivateKey> privs)Send a CreateLeaseSet message. |
| Modifier and Type | Method and Description |
|---|---|
void | 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. |
| Modifier and Type | Class and Description |
|---|---|
(package private) class | RSASigningPrivateCrtKeyA SigningPrivateKey that retains the Chinese Remainder Theorem
parameters, so it can be converted back to a Java CRT key. |
| Modifier and Type | Method and Description |
|---|---|
static SigningPrivateKey | Blinding.blind(SigningPrivateKey key,
SigningPrivateKey alpha)Only for SigTypes EdDSA_SHA512_Ed25519 and RedDSA_SHA512_Ed25519. |
static SigningPrivateKey | SigUtil.fromJavaKey(DSAPrivateKey pk)Convert a Java DSAPrivateKey to an I2P DSA private key. |
static SigningPrivateKey | SigUtil.fromJavaKey(ECPrivateKey pk,
SigType type)Convert a Java ECPrivateKey to an I2P SigningPrivateKey of the given type. |
static SigningPrivateKey | SigUtil.fromJavaKey(EdDSAPrivateKey pk,
SigType type)Convert a Java EdDSAPrivateKey to an I2P SigningPrivateKey. |
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(RSAPrivateKey pk,
SigType type)Convert a Java RSAPrivateKey to an I2P RSA private key of the given 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 Type | Method and Description |
|---|---|
static 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. |
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) |
Signature | DSAEngine.sign(byte[] data,
SigningPrivateKey signingKey)Sign using any key type. |
Signature | DSAEngine.sign(Hash hash,
SigningPrivateKey signingKey)Nonstandard. |
Signature | DSAEngine.sign(InputStream in,
SigningPrivateKey signingKey)Sign using DSA-SHA1 ONLY. |
Signature | DSAEngine.sign(SHA1Hash hash,
SigningPrivateKey signingKey)Sign using DSA-SHA1 ONLY. |
Signature | DSAEngine.sign(SimpleDataStructure hash,
SigningPrivateKey signingKey)Generic signature type. |
Signature | TrustedUpdate.sign(String inputFile,
String signedFile,
SigningPrivateKey signingPrivateKey,
String version)Uses the given SigningPrivateKey to sign the given
input file along with its version string using DSA. |
static DSAPrivateKey | SigUtil.toJavaDSAKey(SigningPrivateKey pk)Convert an I2P DSA private key to a Java DSAPrivateKey. |
static ECPrivateKey | SigUtil.toJavaECKey(SigningPrivateKey pk)Convert an I2P EC private key to a Java ECPrivateKey, with caching. |
static EdDSAPrivateKey | SigUtil.toJavaEdDSAKey(SigningPrivateKey pk)Convert an I2P EdDSA private key to a Java EdDSAPrivateKey, with caching. |
static PrivateKey | SigUtil.toJavaKey(SigningPrivateKey pk)Convert an I2P SigningPrivateKey to a Java PrivateKey, dispatching by algorithm. |
static RSAPrivateKey | SigUtil.toJavaRSAKey(SigningPrivateKey pk)Convert an I2P RSA private key to a Java RSAPrivateKey. |
static SigningPrivateKey | Blinding.unblind(SigningPrivateKey key,
SigningPrivateKey alpha)Only for SigType EdDSA_SHA512_Ed25519. |
| Modifier and Type | Field and Description |
|---|---|
protected SigningPrivateKey | PrivateKeyFile.signingPrivKeythe signing private key |
| Modifier and Type | Method and Description |
|---|---|
SigningPrivateKey | SigningPrivateKey.blind(SigningPrivateKey alpha)Only for SigType EdDSA_SHA512_Ed25519 |
SigningPrivateKey | BlindData.getAlpha()Gets the alpha value for the current day. |
SigningPrivateKey | PrivateKeyFile.getSigningPrivKey()Get the signing private key. |
SigningPrivateKey | PrivateKeyFile.getTransientSigningPrivKey()Get the transient signing private key. |
| Modifier and Type | Method and Description |
|---|---|
SigningPrivateKey | SigningPrivateKey.blind(SigningPrivateKey alpha)Only for SigType EdDSA_SHA512_Ed25519 |
SigningPublicKey | SigningPublicKey.blind(SigningPrivateKey alpha)Only for SigType EdDSA_SHA512_Ed25519 |
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 key |
void | DatabaseEntry.sign(SigningPrivateKey key)Sign the structure using the supplied signing key |
void | EncryptedLeaseSet.sign(SigningPrivateKey key)Sign the structure using the supplied signing key. |
void | LeaseSet2.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. |
| Constructor and Description |
|---|
PrivateKeyFile(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. |
| Modifier and Type | Method and Description |
|---|---|
SigningPrivateKey | CreateLeaseSetMessage.getSigningPrivateKey()Signing private key for the lease set. |
| Modifier and Type | Method and Description |
|---|---|
void | CreateLeaseSetMessage.setSigningPrivateKey(SigningPrivateKey key)Signing private key for the lease set. |
void | SessionConfig.signSessionConfig(SigningPrivateKey signingKey)Sign the structure using the supplied private key |
| Modifier and Type | Method and Description |
|---|---|
SigningPrivateKey | EditBean.getSigningPrivateKey(int tunnel) |
| Modifier and Type | Method and Description |
|---|---|
SigningPrivateKey | LeaseSetKeys.getRevocationKey()Key with which a LeaseSet can be revoked (by republishing it with no Leases)
Deprecated, unused |
SigningPrivateKey | KeyManager.getSigningPrivateKey()Router key |
| Modifier and Type | Method and Description |
|---|---|
void | KeyManager.registerKeys(Destination dest,
SigningPrivateKey leaseRevocationPrivateKey,
List<PrivateKey> endpointDecryptionKeys)Client with multiple keys |
void | KeyManager.registerKeys(Destination dest,
SigningPrivateKey leaseRevocationPrivateKey,
PrivateKey endpointDecryptionKey)Client with a single key |
void | KeyManager.setKeys(PublicKey key1,
PrivateKey key2,
SigningPublicKey key3,
SigningPrivateKey key4)Configure the router's keys. |
| Constructor and Description |
|---|
LeaseSetKeys(Destination dest,
SigningPrivateKey revocationKey,
List<PrivateKey> decryptionKeys)Client with multiple keys
The ONLY valid combinations are X25519 + ElG or X25519 + (MLKEM512 OR MLKEM768 OR MLKEM1024). |
LeaseSetKeys(Destination dest,
SigningPrivateKey revocationKey,
PrivateKey decryptionKey)Client with a single key |
| Modifier and Type | Field and Description |
|---|---|
SigningPrivateKey | LoadRouterInfoJob.KeyData.signingPrivateKeysigningPrivateKey. |
| Constructor and Description |
|---|
KeyData(RouterIdentity ri,
PrivateKey pk,
SigningPrivateKey spk)KeyData. |
| Modifier and Type | Method and Description |
|---|---|
static 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 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. |
| Modifier and Type | Method and Description |
|---|---|
Signature | ByteArrayStream.sign(I2PAppContext ctx,
SigningPrivateKey signingKey)Signs the written data. |
Signature | ByteArrayStream.sign(SigningPrivateKey signingKey)Signs the written data. |