Returns the encapsulation public key for this encrypter.
The encapsulation public key that should be used for encapsulation.
Encapsulates a new shared secret for the recipient.
This method generates a new shared secret and encapsulates it using the encapsulation public key from this encrypter.
A tuple containing:
SymmetricKey
A trait for types that can encapsulate shared secrets for public key encryption.
The
Encrypterinterface defines an interface for encapsulating a shared secret using a public key. This is a key part of hybrid encryption schemes, where a shared symmetric key is encapsulated with a public key, and the recipient uses their private key to recover the symmetric key.Types implementing this interface provide the ability to:
This interface is typically implemented by:
Example