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