Lines Matching refs:nk
235 u8 nr, nk; in get_aes_decrypt_key() local
239 nk = KEYLENGTH_4BYTES; in get_aes_decrypt_key()
243 nk = KEYLENGTH_6BYTES; in get_aes_decrypt_key()
247 nk = KEYLENGTH_8BYTES; in get_aes_decrypt_key()
253 for (i = 0; i < nk; i++) in get_aes_decrypt_key()
257 temp = w_ring[nk - 1]; in get_aes_decrypt_key()
258 while (i + nk < (nr + 1) * 4) { in get_aes_decrypt_key()
259 if (!(i % nk)) { in get_aes_decrypt_key()
263 temp ^= round_constant[i / nk]; in get_aes_decrypt_key()
264 } else if (nk == 8 && (i % 4 == 0)) { in get_aes_decrypt_key()
267 w_ring[i % nk] ^= temp; in get_aes_decrypt_key()
268 temp = w_ring[i % nk]; in get_aes_decrypt_key()
272 for (k = 0, j = i % nk; k < nk; k++) { in get_aes_decrypt_key()
276 j += nk; in get_aes_decrypt_key()