[#BF_cbc_encrypt]
= BF&lowbar;cbc&lowbar;encrypt
:mrdocs:

Encrypt or decrypt data with Blowfish in CBC mode (deprecated)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;deprecated&rsqb;&rsqb;
void
BF&lowbar;cbc&lowbar;encrypt(
    unsigned char const* in,
    unsigned char* out,
    long length,
    xref:BF_KEY.adoc[BF&lowbar;KEY] const* schedule,
    unsigned char* ivec,
    int enc);
----

[WARNING]
====
https://en.cppreference.com/cpp/language/attributes/deprecated[Deprecated^]. Use of this entity is allowed but discouraged.
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *in*
| Input bytes of length `length` (need not be block&hyphen;aligned&semi; CFB&hyphen;style trailing handled)&period;
| *out*
| Output buffer of at least `length` bytes (may equal `in)&period;`
| *length*
| Number of bytes to process&period;
| *schedule*
| Expanded Blowfish key from BF&lowbar;set&lowbar;key()&period;
| *ivec*
| 8&hyphen;byte IV&semi; updated to the last ciphertext block on return&period;
| *enc*
| BF&lowbar;ENCRYPT to encrypt, or BF&lowbar;DECRYPT to decrypt&period;
|===


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