public class GarlicMessageParser extends Object
Constructor and Description |
---|
GarlicMessageParser(RouterContext context) |
Modifier and Type | Method and Description |
---|---|
(package private) CloveSet |
getGarlicCloves(GarlicMessage message,
PrivateKey elgKey,
PrivateKey ecKey,
SessionKeyManager skm)
Supports both ELGAMAL_2048 and ECIES_X25519.
|
(package private) CloveSet |
getGarlicCloves(GarlicMessage message,
PrivateKey encryptionKey,
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, PrivateKey encryptionKey, SessionKeyManager skm)
encryptionKey
- either typeskm
- use tags from this session key managerCloveSet getGarlicCloves(GarlicMessage message, PrivateKey elgKey, PrivateKey ecKey, 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 DataFormatException
offset
- where in data to startDataFormatException