[#OSSL_HPKE_CTX_get_seq]
= OSSL&lowbar;HPKE&lowbar;CTX&lowbar;get&lowbar;seq
:mrdocs:

Return the AEAD sequence number that will be used on the next seal&sol;open call&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
OSSL&lowbar;HPKE&lowbar;CTX&lowbar;get&lowbar;seq(
    xref:OSSL_HPKE_CTX.adoc[OSSL&lowbar;HPKE&lowbar;CTX]* ctx,
    uint64&lowbar;t* seq);
----

== Return Value

1 on success, or 0 on error&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| HPKE context to query&period;
| *seq*
| Receives the next sequence &sol; nonce increment value&period;
|===


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