Home
last modified time | relevance | path

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

/u-boot/lib/
A Daes.c540 u32 idx, aes_rounds, aes_keycols; in aes_expand_key() local
543 aes_keycols = aes_get_keycols(key_len); in aes_expand_key()
547 for (idx = aes_keycols; idx < AES_STATECOLS * (aes_rounds + 1); idx++) { in aes_expand_key()
552 if (!(idx % aes_keycols)) { in aes_expand_key()
555 tmp0 = sbox[tmp1] ^ rcon[idx / aes_keycols]; in aes_expand_key()
558 } else if ((aes_keycols > 6) && (idx % aes_keycols == 4)) { 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()

Completed in 3 milliseconds