mbedtls_camellia_setkey_enc() function
Perform a CAMELLIA key schedule operation for encryption.
Arguments
ctx
The CAMELLIA context to use. This must be initialized.
key
The encryption key to use. This must be a readable buffer of size \p keybits Bits.
keybits
The length of \p key in Bits. This must be either \c 128, \c 192 or \c 256.
Return value
\c 0 if successful. A negative error code on failure.
![]()
if( ( ret = mbedtls_camellia_setkey_enc( &cty, key, keybits ) ) != 0 )
mbedtls_camellia_setkey_enc() is called by 2 functions and calls 1 function:
![]()
mbedtls_camellia_setkey_enc()
mbedtls_camellia_setkey_enc() reads 5 variables and writes 1 variable:
![]()
mbedtls_camellia_setkey_enc()