Derive an exporter secret from an established HPKE context (after encap/decap).
Synopsis
Declared in <openssl/hpke.h>
int
OSSL_HPKE_export(
OSSL_HPKE_CTX* ctx,
unsigned char* secret,
size_t secretlen,
unsigned char const* label,
size_t labellen);
Return Value
1 on success, or 0 on error.
Parameters
Name |
Description |
ctx |
HPKE context with derived secrets. |
secret |
Destination buffer for the exported secret. |
secretlen |
Desired export length in bytes. |
label |
Application‐supplied exporter context label. |
labellen |
Length of |
Created with MrDocs