tc_cbc_mode_encrypt() is only used within ESP-IDF.
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsReferencesCall TreeData Use

Return value

returns TC_CRYPTO_SUCCESS (1) returns TC_CRYPTO_FAIL (0) if: out == NULL or in == NULL or ctr == NULL or sched == NULL or inlen == 0 or (inlen % TC_AES_BLOCK_SIZE) != 0 or (outlen % TC_AES_BLOCK_SIZE) != 0 or outlen != inlen + TC_AES_BLOCK_SIZE

Notes

Assumes: - sched has been configured by aes_set_encrypt_key - iv contains a 16 byte random string - out buffer is large enough to hold the ciphertext + iv - out buffer is a contiguous buffer - in holds the plaintext and is a contiguous buffer - inlen gives the number of bytes in the in buffer

References