Returns the encapsulation private key for this decrypter.
The encapsulation private key that should be used for decapsulation.
Decapsulates a shared secret from a ciphertext.
This method recovers the shared secret that was encapsulated in the given ciphertext, using the private key from this decrypter.
The encapsulation ciphertext containing the encapsulated shared secret
The decapsulated SymmetricKey
A trait for types that can decapsulate shared secrets for public key decryption.
The
Decrypterinterface defines an interface for decapsulating (recovering) a shared secret using a private key. This is the counterpart to theEncrypterinterface and is used by the recipient of encapsulated messages.Types implementing this interface provide the ability to:
This interface is typically implemented by:
Example