OSSL_HPKE_get_ciphertext_size

Return the ciphertext size needed to seal a plaintext of length clearlen.

Synopsis

Declared in <openssl/hpke.h>

size_t
OSSL_HPKE_get_ciphertext_size(
    OSSL_HPKE_SUITE suite,
    size_t clearlen);

Return Value

Required ciphertext length, or 0 on error.

Parameters

NameDescription
suiteSuite whose AEAD tag expansion is applied.
clearlenPlaintext length in bytes.