tc_aes_encrypt() function
AES-128 Encryption procedure Encrypts contents of in buffer into out buffer under key; schedule s
Arguments
out
IN/OUT -- buffer to receive ciphertext block
in
IN -- a plaintext block to encrypt
s
IN -- initialized AES key schedule
Return value
returns TC_CRYPTO_SUCCESS (1) returns TC_CRYPTO_FAIL (0) if: out == NULL or in == NULL or s == NULL
Notes
Assumes s was initialized by aes_set_encrypt_key; out and in point to 16 byte buffers