[#OSSL_HPKE_get_ciphertext_size]
= OSSL&lowbar;HPKE&lowbar;get&lowbar;ciphertext&lowbar;size
:mrdocs:

Return the ciphertext size needed to seal a plaintext of length `clearlen&period;`

== Synopsis

Declared in `&lt;openssl&sol;hpke&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
size&lowbar;t
OSSL&lowbar;HPKE&lowbar;get&lowbar;ciphertext&lowbar;size(
    OSSL&lowbar;HPKE&lowbar;SUITE suite,
    size&lowbar;t clearlen);
----

== Return Value

Required ciphertext length, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *suite*
| Suite whose AEAD tag expansion is applied&period;
| *clearlen*
| Plaintext length in bytes&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
