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

Name

Description

suite

Suite whose AEAD tag expansion is applied.

clearlen

Plaintext length in bytes.

Created with MrDocs