[#OSSL_HPKE_str2suite]
= OSSL&lowbar;HPKE&lowbar;str2suite
:mrdocs:

Parse a comma&hyphen;separated &quot;kem,kdf,aead&quot; string into an OSSL&lowbar;HPKE&lowbar;SUITE&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;HPKE&lowbar;str2suite(
    char const* str,
    OSSL&lowbar;HPKE&lowbar;SUITE* suite);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *str*
| Suite string such as &quot;x25519,hkdf&hyphen;sha256,aes&hyphen;128&hyphen;gcm&quot; (case&hyphen;insensitive names or numeric ids)&period;
| *suite*
| Destination suite filled on success&period;
|===


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