Interface KeyEncapsulation

    • Method Detail

      • init

        void init​(CipherParameters param)
        Initialise the key encapsulation mechanism.
      • encrypt

        CipherParameters encrypt​(byte[] out,
                                 int outOff,
                                 int keyLen)
        Encapsulate a randomly generated session key.
      • decrypt

        CipherParameters decrypt​(byte[] in,
                                 int inOff,
                                 int inLen,
                                 int keyLen)
        Decapsulate an encapsulated session key.