Home
last modified time | relevance | path

Searched refs:AES_KEYCOLS (Results 1 – 2 of 2) sorted by relevance

/external/u-boot/lib/
Daes.c517 memcpy(expkey, key, AES_KEYCOLS * 4); in aes_expand_key()
519 for (idx = AES_KEYCOLS; idx < AES_STATECOLS * (AES_ROUNDS + 1); idx++) { in aes_expand_key()
524 if (!(idx % AES_KEYCOLS)) { in aes_expand_key()
527 tmp0 = sbox[tmp1] ^ rcon[idx / AES_KEYCOLS]; in aes_expand_key()
530 } else if ((AES_KEYCOLS > 6) && (idx % AES_KEYCOLS == 4)) { in aes_expand_key()
537 expkey[4*idx+0] = expkey[4*idx - 4*AES_KEYCOLS + 0] ^ tmp0; in aes_expand_key()
538 expkey[4*idx+1] = expkey[4*idx - 4*AES_KEYCOLS + 1] ^ tmp1; in aes_expand_key()
539 expkey[4*idx+2] = expkey[4*idx - 4*AES_KEYCOLS + 2] ^ tmp2; in aes_expand_key()
540 expkey[4*idx+3] = expkey[4*idx - 4*AES_KEYCOLS + 3] ^ tmp3; in aes_expand_key()
/external/u-boot/include/
Duboot_aes.h26 AES_KEYCOLS = 4, /* columns in a key */ enumerator