Represents a cryptographic key pair consisting of a public key and private key.
These keys are used throughout HPKE for key encapsulation mechanisms (KEM). Key pairs are randomly generated using CipherSuite.GenerateKeyPair or deterministically derived from a seed using CipherSuite.DeriveKeyPair.
Key Usage:
- Public Key: Used by senders for encryption operations (passed to CipherSuite.SetupSender or CipherSuite.Seal). These keys are distributed by recipients.
- Private Key: Used by recipients for decryption operations (passed to CipherSuite.SetupRecipient or CipherSuite.Open). These are not distributed and kept private.
readonlyprivateKey:Readonly<Key>
The private key, used for decryption operations.
readonlypublicKey:Readonly<Key>
The public key, used for encryption operations.