Searched refs:expkey (Results 1 – 2 of 2) sorted by relevance
/u-boot/lib/ |
A D | aes.c | 545 memcpy(expkey, key, key_len); in aes_expand_key() 548 tmp0 = expkey[4*idx - 4]; in aes_expand_key() 549 tmp1 = expkey[4*idx - 3]; in aes_expand_key() 550 tmp2 = expkey[4*idx - 2]; in aes_expand_key() 551 tmp3 = expkey[4*idx - 1]; in aes_expand_key() 565 expkey[4*idx+0] = expkey[4*idx - 4*aes_keycols + 0] ^ tmp0; in aes_expand_key() 566 expkey[4*idx+1] = expkey[4*idx - 4*aes_keycols + 1] ^ tmp1; in aes_expand_key() 567 expkey[4*idx+2] = expkey[4*idx - 4*aes_keycols + 2] ^ tmp2; in aes_expand_key() 568 expkey[4*idx+3] = expkey[4*idx - 4*aes_keycols + 3] ^ tmp3; in aes_expand_key() 581 add_round_key((u32 *)state, (u32 *)expkey); in aes_encrypt() [all …]
|
/u-boot/include/ |
A D | uboot_aes.h | 51 void aes_expand_key(u8 *key, u32 key_size, u8 *expkey); 61 void aes_encrypt(u32 key_size, u8 *in, u8 *expkey, u8 *out); 71 void aes_decrypt(u32 key_size, u8 *in, u8 *expkey, u8 *out);
|
Completed in 4 milliseconds