[#CRYPTO_ocb128_decrypt]
= CRYPTO&lowbar;ocb128&lowbar;decrypt
:mrdocs:

Decrypt ciphertext and update the OCB authentication state&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
CRYPTO&lowbar;ocb128&lowbar;decrypt(
    xref:OCB128_CONTEXT-0a.adoc[OCB128&lowbar;CONTEXT]* ctx,
    unsigned char const* in,
    unsigned char* out,
    size&lowbar;t len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| OCB context ready for decryption&period;
| *in*
| Ciphertext bytes of length `len&period;`
| *out*
| Plaintext buffer of length `len` (may equal `in)&period;`
| *len*
| Number of bytes to decrypt&period;
|===


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