Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.crypto
Interface KeyEncapsulation

All Known Implementing Classes:
  ECIESKeyEncapsulation, RSAKeyEncapsulation

Deprecated. use `EncapsulatedSecretGenerator` and `EncapsulatedSecretExtractor`

public interface KeyEncapsulation

The basic interface for key encapsulation mechanisms.

Method Summary
`CipherParameters` | `decrypt(byte[] in, int inOff, int inLen, int keyLen)` Deprecated. Decapsulate an encapsulated session key.
`CipherParameters` | `encrypt(byte[] out, int outOff, int keyLen)` Deprecated. Encapsulate a randomly generated session key.
`void` | `init(CipherParameters param)` Deprecated. Initialise the key encapsulation mechanism.

Method Detail

### init

    public void init(CipherParameters param)

  Deprecated.
  Initialise the key encapsulation mechanism.

### encrypt

    public CipherParameters encrypt(byte[] out,
                                    int outOff,
                                    int keyLen)

  Deprecated.
  Encapsulate a randomly generated session key.

### decrypt

    public CipherParameters decrypt(byte[] in,
                                    int inOff,
                                    int inLen,
                                    int keyLen)

  Deprecated.
  Decapsulate an encapsulated session key.

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD