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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloveSet
decrypt(byte[] data, PrivateKey elgKey, PrivateKey ecKey, MuxedSKM keyManager)
Decrypt the message with the given private keys
-
-
-
Constructor Detail
-
MuxedEngine
public MuxedEngine(RouterContext ctx)
-
-
Method Detail
-
decrypt
public CloveSet decrypt(byte[] data, PrivateKey elgKey, PrivateKey ecKey, MuxedSKM keyManager) throws DataFormatException
Decrypt 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
-
-