RC2_cbc_encrypt

Encrypt or decrypt with RC2 in CBC mode (deprecated).

Synopsis

Declared in <openssl/rc2.h>

[[deprecated]]
void
RC2_cbc_encrypt(
    unsigned char const* in,
    unsigned char* out,
    long length,
    RC2_KEY* ks,
    unsigned char* iv,
    int enc);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Parameters

NameDescription
inInput bytes of length length.
outOutput buffer of at least length bytes.
lengthNumber of bytes to process (should be a multiple of RC2_BLOCK).
ksExpanded key from RC2_set_key().
iv8-byte IV; updated to the last ciphertext block.
encRC2_ENCRYPT or RC2_DECRYPT.