BF_cbc_encrypt

Encrypt or decrypt data with Blowfish in CBC mode (deprecated).

Synopsis

Declared in <openssl/blowfish.h>

[[deprecated]]
void
BF_cbc_encrypt(
    unsigned char const* in,
    unsigned char* out,
    long length,
    BF_KEY const* schedule,
    unsigned char* ivec,
    int enc);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Parameters

NameDescription
inInput bytes of length length (need not be block-aligned; CFB-style trailing handled).
outOutput buffer of at least length bytes (may equal in).
lengthNumber of bytes to process.
scheduleExpanded Blowfish key from BF_set_key().
ivec8-byte IV; updated to the last ciphertext block on return.
encBF_ENCRYPT to encrypt, or BF_DECRYPT to decrypt.