mbedtls_block_cipher_encrypt() function
Encrypt one block (16 bytes) with the configured key.
Arguments
ctx
The context holding the key.
input
The buffer holding the input block. Must be 16 bytes.
output
The buffer to which the output block will be written. Must be writable and 16 bytes long. This must either not overlap with \p input, or be equal.
Return value
\c 0 on success. #MBEDTLS_ERR_CIPHER_INVALID_CONTEXT if the context was not properly set up before calling this function. Another negative value if encryption failed.