RC2_ecb_encrypt

Encrypt or decrypt one RC2 block in ECB mode (deprecated).

Synopsis

Declared in <openssl/rc2.h>

[[deprecated]]
void
RC2_ecb_encrypt(
    unsigned char const* in,
    unsigned char* out,
    RC2_KEY* key,
    int enc);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Parameters

NameDescription
in8-byte input block.
out8-byte output block (may equal in).
keyExpanded key from RC2_set_key().
encRC2_ENCRYPT to encrypt, or RC2_DECRYPT to decrypt.