CAST_ecb_encrypt

Encrypt or decrypt one 8-byte CAST block in ECB mode (deprecated; prefer EVP).

Synopsis

Declared in <openssl/cast.h>

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

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Parameters

NameDescription
in8-byte input block.
out8-byte output buffer (may equal in).
keyExpanded CAST key from CAST_set_key().
encCAST_ENCRYPT to encrypt, or CAST_DECRYPT to decrypt.