CRYPTO_cfb128_8_encrypt

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

Synopsis

Declared in <openssl/modes.h>

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

Parameters

NameDescription
inInput bytes of length length.
outOutput buffer of length length (may equal in).
lengthNumber of bytes 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.