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.
|
Modifier and Type | Method and Description |
---|---|
static EncType |
EncType.getByCode(int code) |
static EncType |
EncType.parseEncType(String stype)
Convenience for user apps
|
static EncType |
EncType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncType[] |
EncType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
KeyPair |
KeyGenerator.generatePKIKeys(EncType type)
Supports EncTypes
|
Modifier and Type | Method and Description |
---|---|
EncType |
KeyCertificate.getEncType() |
EncType |
KeysAndCert.getEncType() |
EncType |
PublicKey.getType() |
EncType |
PrivateKey.getType() |
Modifier and Type | Method and Description |
---|---|
PublicKey |
LeaseSet.getEncryptionKey(Set<EncType> supported)
If more than one key, return the first supported one.
|
PublicKey |
LeaseSet2.getEncryptionKey(Set<EncType> supported)
If more than one key, return the first supported one.
|
PublicKey |
EncryptedLeaseSet.getEncryptionKey(Set<EncType> supported)
If more than one key, return the first supported one.
|
Constructor and Description |
---|
KeyCertificate(SigType type,
EncType etype)
A KeyCertificate with crypto type
and the signature type as specified.
|
PrivateKey(EncType type) |
PrivateKey(EncType type,
byte[] data) |
PrivateKey(EncType type,
byte[] data,
PublicKey pubKey) |
PublicKey(EncType type) |
PublicKey(EncType type,
byte[] data) |
Modifier and Type | Field and Description |
---|---|
static Set<EncType> |
LeaseSetKeys.SET_EC |
static Set<EncType> |
LeaseSetKeys.SET_ELG
Unmodifiable, ElGamal only
|
Modifier and Type | Method and Description |
---|---|
Set<EncType> |
LeaseSetKeys.getSupportedEncryption()
What types of encryption are supported?
|
Modifier and Type | Method and Description |
---|---|
PrivateKey |
LeaseSetKeys.getDecryptionKey(EncType type)
Decryption key which can open up garlic messages encrypted to the
LeaseSet's public key.
|
boolean |
LeaseSetKeys.isSupported(EncType type)
Do we support this type of encryption?
|