Encapsulate to a recipient public key and derive sender HPKE secrets.
Synopsis
Declared in <openssl/hpke.h>
int
OSSL_HPKE_encap(
OSSL_HPKE_CTX* ctx,
unsigned char* enc,
size_t* enclen,
unsigned char const* pub,
size_t publen,
unsigned char const* info,
size_t infolen);
Return Value
1 on success, or 0 on error.
Parameters
Name |
Description |
ctx |
Sender HPKE context (only one successful call allowed per context). |
enc |
Destination for the encapsulated public value; on input *`enclen` is capacity. |
enclen |
In/out length of |
pub |
Recipient public key octets for the suite's KEM. |
publen |
Length of |
info |
Optional application info bound into key schedule, or NULL if |
infolen |
Length of |
Created with MrDocs