net.i2p.router.crypto.ratchet

## Class MuxedEngine

- java.lang.Object
- - net.i2p.router.crypto.ratchet.MuxedEngine

-     final class MuxedEngine
      extends Object

  Multiplexed decryption engine supporting both ElGamal and ECIES+AEAD with adaptive ordering

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MuxedEngine(RouterContext ctx)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `CloveSet` | `decrypt(byte[] data, PrivateKey elgKey, PrivateKey ecKey, MuxedSKM keyManager)` Decrypt the message with the given private keys

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 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-null
        `ecKey` - must be EC, non-null
      Returns:
        decrypted data or null on failure
      Throws:
        `DataFormatException`