Package | Description |
---|---|
net.i2p.crypto |
These classes provide a number of low-level cryptographic routines.
|
net.i2p.data |
These classes define the common data structures used by the various
I2P protocols.
|
net.i2p.router |
The I2P router application handles the I2P network communication.
|
net.i2p.router.startup |
The I2P startup package loads the configuration when I2P is started.
|
Modifier and Type | Method | Description |
---|---|---|
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 Type | Method | Description |
---|---|---|
Map<SigningPublicKey,String> |
TrustedUpdate.getKeys() |
Modifier and Type | Method | Description |
---|---|---|
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.
unused
|
boolean |
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 ONLY
|
boolean |
DSAEngine.verifySignature(Signature signature,
SHA1Hash hash,
SigningPublicKey verifyingKey) |
Verify using DSA-SHA1 ONLY
|
boolean |
DSAEngine.verifySignature(Signature signature,
Hash hash,
SigningPublicKey verifyingKey) |
Nonstandard.
|
boolean |
DSAEngine.verifySignature(Signature signature,
SimpleDataStructure hash,
SigningPublicKey verifyingKey) |
Generic signature type.
|
Modifier and Type | Field | Description |
---|---|---|
protected SigningPublicKey |
KeysAndCert._signingKey |
Modifier and Type | Method | Description |
---|---|---|
static SigningPublicKey |
SigningPublicKey.create(byte[] data,
int off) |
Pull from cache or return new.
|
static SigningPublicKey |
SigningPublicKey.create(InputStream in) |
Pull from cache or return new
|
SigningPublicKey |
LeaseSet.getSigningKey() |
Deprecated.
unused
|
protected SigningPublicKey |
DatabaseEntry.getSigningPublicKey() |
Identical to getDestination().getSigningPublicKey() in LeaseSet,
and getIdentity().getSigningPublicKey() in RouterInfo.
|
SigningPublicKey |
KeysAndCert.getSigningPublicKey() |
|
SigningPublicKey |
SigningPrivateKey.toPublic() |
Converts this signing private key to its public equivalent.
|
SigningPublicKey |
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 Type | Method | Description |
---|---|---|
static boolean |
PrivateKeyFile.checkSignature(Signature s,
byte[] data,
SigningPublicKey spk) |
|
void |
LeaseSet.setSigningKey(SigningPublicKey key) |
The revocation key.
|
void |
KeysAndCert.setSigningPublicKey(SigningPublicKey key) |
|
boolean |
LeaseSet.verifySignature(SigningPublicKey signingKey) |
Deprecated.
revocation unused
|
Constructor | Description |
---|---|
KeyCertificate(SigningPublicKey spk) |
A KeyCertificate with crypto type 0 (ElGamal)
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) |
Modifier and Type | Method | Description |
---|---|---|
SigningPublicKey |
KeyManager.getSigningPublicKey() |
Router key
|
Modifier and Type | Method | Description |
---|---|---|
void |
KeyManager.setKeys(PublicKey key1,
PrivateKey key2,
SigningPublicKey key3,
SigningPrivateKey key4) |
Configure the router's keys.
|
Modifier and Type | Method | Description |
---|---|---|
(package private) static Certificate |
CreateRouterInfoJob.createCertificate(RouterContext ctx,
SigningPublicKey spk) |
Only called at startup via LoadRouterInfoJob and RebuildRouterInfoJob.
|