java.lang.Object
net.i2p.router.crypto.ratchet.MuxedEngine
Multiplexed decryption engine supporting both ElGamal and ECIES+AEAD with adaptive ordering.
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RouterContextThe router context the engine runs in.private final LogLogger for this class.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptiondecrypt(byte[] data, PrivateKey elgKey, PrivateKey ecKey, MuxedSKM keyManager) Decrypt the message with the given private keys.
Field Details
_context
The router context the engine runs in._log
Logger for this class.
Constructor Details
MuxedEngine
Method Details
decrypt
public CloveSet decrypt(byte[] data, PrivateKey elgKey, PrivateKey ecKey, MuxedSKM keyManager) throws DataFormatException Decrypt the message with the given private keys.- Parameters:
data- the encrypted CloveSet to decryptelgKey- must be ElG, non-nullecKey- must be EC, non-nullkeyManager- holds the session key material and ratchet preference- Returns:
- decrypted data or null on failure
- Throws:
DataFormatException- if the underlying garlic parse fails and cannot be recovered by trying the remaining crypto schemes