Lines Matching refs:nk
222 u8 nr, nk; in get_aes_decrypt_key() local
226 nk = KEYLENGTH_4BYTES; in get_aes_decrypt_key()
230 nk = KEYLENGTH_6BYTES; in get_aes_decrypt_key()
234 nk = KEYLENGTH_8BYTES; in get_aes_decrypt_key()
240 for (i = 0; i < nk; i++) in get_aes_decrypt_key()
244 temp = w_ring[nk - 1]; in get_aes_decrypt_key()
245 while (i + nk < (nr + 1) * 4) { in get_aes_decrypt_key()
246 if (!(i % nk)) { in get_aes_decrypt_key()
250 temp ^= round_constant[i / nk]; in get_aes_decrypt_key()
251 } else if (nk == 8 && (i % 4 == 0)) { in get_aes_decrypt_key()
254 w_ring[i % nk] ^= temp; in get_aes_decrypt_key()
255 temp = w_ring[i % nk]; in get_aes_decrypt_key()
259 for (k = 0, j = i % nk; k < nk; k++) { in get_aes_decrypt_key()
263 j += nk; in get_aes_decrypt_key()