org.bouncycastle.crypto
Interface KeyEncapsulation
- All Known Implementing Classes:
- ECIESKeyEncapsulation, RSAKeyEncapsulation
- public interface KeyEncapsulation
The basic interface for key encapsulation mechanisms.
init
public void init(CipherParameters param)
- Initialise the key encapsulation mechanism.
encrypt
public CipherParameters encrypt(byte[] out,
int outOff,
int keyLen)
- Encapsulate a randomly generated session key.
decrypt
public CipherParameters decrypt(byte[] in,
int inOff,
int inLen,
int keyLen)
- Decapsulate an encapsulated session key.