mbedtls_cipher_setkey() function
This function sets the key to use with the given context.
Arguments
ctx
The generic cipher context. This must be initialized and bound to a cipher information structure.
key
The key to use. This must be a readable buffer of at least \p key_bitlen Bits.
key_bitlen
The key length to use, in Bits.
operation
The operation that the key will be used for: #MBEDTLS_ENCRYPT or #MBEDTLS_DECRYPT.
Return value
\c 0 on success. #MBEDTLS_ERR_CIPHER_BAD_INPUT_DATA on parameter-verification failure. A cipher-specific error code on failure.
Functions calling mbedtls_cipher_setkey()
Functions called by mbedtls_cipher_setkey()
mbedtls_cipher_setkey()
Data read by mbedtls_cipher_setkey()
Data written by mbedtls_cipher_setkey()
mbedtls_cipher_setkey()