Camellia_set_key

Expand a raw Camellia key into a CAMELLIA_KEY schedule (deprecated; prefer EVP).

Synopsis

Declared in <openssl/camellia.h>

[[deprecated]]
int
Camellia_set_key(
    unsigned char const* userKey,
    int const bits,
    CAMELLIA_KEY* key);

WARNING

Deprecated. Use of this entity is allowed but discouraged.

Return Value

0 on success, or a negative value on error.

Parameters

NameDescription
userKeyRaw key octets (16, 24, or 32 bytes for 128/192/256-bit keys).
bitsKey length in bits (128, 192, or 256).
keyDestination expanded key schedule.