tc_aes128_set_encrypt_key() function
Set AES-128 encryption key Uses key k to initialize s
Arguments
s
IN/OUT -- initialized struct tc_aes_key_sched_struct
k
IN -- points to the AES key
Return value
returns TC_CRYPTO_SUCCESS (1) returns TC_CRYPTO_FAIL (0) if: s == NULL or k == NULL
Notes
This implementation skips the additional steps required for keys larger than 128 bits, and must not be used for AES-192 or AES-256 key schedule -- see FIPS 197 for details
tc_aes128_set_encrypt_key() is called by 5 functions and calls 2 functions:
![]()
tc_aes128_set_encrypt_key()
tc_aes128_set_encrypt_key() reads 3 variables:
![]()
tc_aes128_set_encrypt_key()