[#OSSL_HPKE_get_public_encap_size]
= OSSL&lowbar;HPKE&lowbar;get&lowbar;public&lowbar;encap&lowbar;size
:mrdocs:

Return the encapsulated public&hyphen;key size produced by OSSL&lowbar;HPKE&lowbar;encap() for `suite&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;public&lowbar;encap&lowbar;size(OSSL&lowbar;HPKE&lowbar;SUITE suite);
----

== Return Value

Encapsulated key length in bytes, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *suite*
| Suite whose KEM determines the encap length&period;
|===


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