Interface KeyEncapsulation

All Known Implementing Classes:
ECIESKeyEncapsulation, RSAKeyEncapsulation

public interface KeyEncapsulation
The basic interface for key encapsulation mechanisms.
  • Method Summary

    Modifier and Type
    Method
    Description
    decrypt(byte[] in, int inOff, int inLen, int keyLen)
    Deprecated.
    Decapsulate an encapsulated session key.
    encrypt(byte[] out, int outOff, int keyLen)
    Deprecated.
    Encapsulate a randomly generated session key.
    void
    Deprecated.
    Initialise the key encapsulation mechanism.
  • Method Details

    • init

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

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

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