public class GarlicMessageParser extends Object
| Constructor and Description |
|---|
GarlicMessageParser(RouterContext context) |
| Modifier and Type | Method and Description |
|---|---|
(package private) CloveSet |
getGarlicCloves(GarlicMessage message,
net.i2p.data.PrivateKey elgKey,
net.i2p.data.PrivateKey ecKey,
net.i2p.crypto.SessionKeyManager skm)
Supports both ELGAMAL_2048 and ECIES_X25519.
|
(package private) CloveSet |
getGarlicCloves(GarlicMessage message,
net.i2p.data.PrivateKey encryptionKey,
net.i2p.crypto.SessionKeyManager skm)
Supports both ELGAMAL_2048 and ECIES_X25519.
|
CloveSet |
readCloveSet(byte[] data,
int offset)
ElGamal only
|
public GarlicMessageParser(RouterContext context)
CloveSet getGarlicCloves(GarlicMessage message, net.i2p.data.PrivateKey encryptionKey, net.i2p.crypto.SessionKeyManager skm)
encryptionKey - either typeskm - use tags from this session key managerCloveSet getGarlicCloves(GarlicMessage message, net.i2p.data.PrivateKey elgKey, net.i2p.data.PrivateKey ecKey, net.i2p.crypto.SessionKeyManager skm)
elgKey - must be ElG, non-nullecKey - must be EC, non-nullskm - use tags from this session key managerpublic CloveSet readCloveSet(byte[] data, int offset) throws net.i2p.data.DataFormatException
offset - where in data to startnet.i2p.data.DataFormatException