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 ELGAMAL_2048, ECIES_X25519, and PQ
|
CloveSet |
readCloveSet(byte[] data,
int offset)
ElGamal only
|
public GarlicMessageParser(RouterContext context)
CloveSet getGarlicCloves(GarlicMessage message, PrivateKey elgKey, PrivateKey ecKey, SessionKeyManager skm)
elgKey - must be ElG OR PQ, non-nullecKey - must be EC, non-nullskm - use tags from this session key managerCloveSet getGarlicCloves(GarlicMessage message, PrivateKey encryptionKey, SessionKeyManager skm)
encryptionKey - either type TODO need both for muxedskm - use tags from this session key managerpublic CloveSet readCloveSet(byte[] data, int offset) throws DataFormatException
offset - where in data to startDataFormatException