init(privateKey:ciphersuite:info:encapsulatedKey:)
Creates a recipient in base mode.
Declaration
init<SK>(privateKey: SK, ciphersuite: HPKE.Ciphersuite, info: Data, encapsulatedKey: Data) throws where SK : HPKEKEMPrivateKeyParameters
- privateKey:
The recipient’s private key for decrypting the incoming messages.
- ciphersuite:
The cipher suite that defines the cryptographic algorithms to use.
- info:
Data that the key derivation function uses to compute the symmetric key material. The sender and the recipient need to use the same
infodata. - encapsulatedKey:
The encapsulated symmetric key that the sender provides.
Discussion
The Receiver decrypts messages in base mode using the encapsulated key with the key schedule information (info data).