pub fn dispatch_key_wrap_record<L>(
input: RecipientRecordInput,
private_key_lookup: &L,
) -> KeyWrapOutcomewhere
L: PrivateKeyLookup + ?Sized,Expand description
Dispatch a single key-wrap recipient record to the profile parser.
For profile_id == KEYWRAP_PROFILE_ID, this validates:
- recipient identity parsing for X.509 type=2 records
- profile payload framing
- context digest computation
- supported HPKE suites and fixed lengths
It then asks the caller for a matching private key and attempts HPKE Open.