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

Name

Description

in

Input bytes of length length.

out

Output buffer of at least length bytes.

length

Number of bytes to process (should be a multiple of RC2_BLOCK).

ks

Expanded key from RC2_set_key().

iv

8‐byte IV; updated to the last ciphertext block.

enc

RC2_ENCRYPT or RC2_DECRYPT.

Created with MrDocs