Encrypt or decrypt with Blowfish in 64‐bit CFB mode (deprecated; prefer EVP_EncryptInit_ex and related EVP APIs).

Synopsis

Declared in <openssl/blowfish.h>

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

Deprecated. Use of this entity is allowed but discouraged.

Parameters

Name

Description

in

Input bytes of length length (need not be a multiple of 8).

out

Output buffer of at least length bytes (may equal in).

length

Number of bytes to process.

schedule

Expanded Blowfish key from BF_set_key().

ivec

8‐byte IV; updated with running feedback state on return.

num

Offset into the CFB feedback block (0..7), updated in place; initialize to 0 with ivec.

enc

BF_ENCRYPT to encrypt, or BF_DECRYPT to decrypt.

Created with MrDocs