Package org.bouncycastle.crypto.internal
Interface KeyEncapsulation
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.voidinit(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.
-