[#AES256CBCEncrypt-Encrypt]
= xref:AES256CBCEncrypt.adoc[AES256CBCEncrypt]::Encrypt
:relfileprefix: ../
:mrdocs:

Encrypt a buffer of arbitrary length in CBC mode&period;

== Synopsis

Declared in `&lt;crypto&sol;aes&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
Encrypt(
    unsigned char const* data,
    int size,
    unsigned char* out) const;
----

== Return Value

The number of ciphertext bytes written&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| The plaintext to encrypt&period;
| *size*
| The number of plaintext bytes&period;
| *out*
| Output buffer receiving the ciphertext&period;
|===


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