Top Description Methods
org.bouncycastle.crypto

public Interface KeyEncapsulation

Known Direct Implementers
org.bouncycastle.crypto.kems.ECIESKeyEncapsulation, org.bouncycastle.crypto.kems.RSAKeyEncapsulation

Deprecated

use EncapsulatedSecretGenerator and EncapsulatedSecretExtractor

The basic interface for key encapsulation mechanisms.

Method Summary

Modifier and TypeMethod and Description
public CipherParameters
decrypt(byte[] in, int inOff, int inLen, int keyLen)

Decapsulate an encapsulated session key.

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

Encapsulate a randomly generated session key.

public void
init(CipherParameters param)

Initialise the key encapsulation mechanism.

Method Detail

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

Decapsulate an encapsulated session key.

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

Encapsulate a randomly generated session key.

initback to summary
public void init(CipherParameters param)

Initialise the key encapsulation mechanism.