Package net.i2p.router.crypto.ratchet
Class MuxedEngine
java.lang.Object
net.i2p.router.crypto.ratchet.MuxedEngine
final class MuxedEngine extends Object
Handles the actual decryption using the
supplied keys and data.
- Since:
- 0.9.44
-
Constructor Summary
Constructors Constructor Description MuxedEngine(RouterContext ctx)
-
Method Summary
Modifier and Type Method Description CloveSet
decrypt(byte[] data, PrivateKey elgKey, PrivateKey ecKey, MuxedSKM keyManager)
Decrypt the message with the given private keys
-
Constructor Details
-
Method Details
-
decrypt
public CloveSet decrypt(byte[] data, PrivateKey elgKey, PrivateKey ecKey, MuxedSKM keyManager) throws DataFormatExceptionDecrypt the message with the given private keys- Parameters:
elgKey
- must be ElG, non-nullecKey
- must be EC, non-null- Returns:
- decrypted data or null on failure
- Throws:
DataFormatException
-