CRYPTO_cfb128_1_encrypt

Encrypt or decrypt with a 128-bit block cipher in 1-bit CFB mode.

Synopsis

Declared in <openssl/modes.h>

void
CRYPTO_cfb128_1_encrypt(
    unsigned char const* in,
    unsigned char* out,
    size_t bits,
    void const* key,
    unsigned char ivec[],
    int* num,
    int enc,
    block128_f block);

Parameters

NameDescription
inInput bits packed most-significant-bit first.
outOutput buffer holding the transformed bits (same packing).
bitsNumber of bits to process.
keyCipher-specific expanded key for block.
ivec16-byte IV / feedback block updated in place.
numOffset into the current CFB block (updated).
encNon-zero to encrypt, zero to decrypt.
blockBlock-encrypt function for the underlying cipher.