Lines Matching refs:rkp
260 const u32 *rkp = ctx->key_enc + 4; in aes_encrypt() local
281 for (round = 0;; round += 2, rkp += 8) { in aes_encrypt()
282 st1[0] = mix_columns(subshift(st0, 0)) ^ rkp[0]; in aes_encrypt()
283 st1[1] = mix_columns(subshift(st0, 1)) ^ rkp[1]; in aes_encrypt()
284 st1[2] = mix_columns(subshift(st0, 2)) ^ rkp[2]; in aes_encrypt()
285 st1[3] = mix_columns(subshift(st0, 3)) ^ rkp[3]; in aes_encrypt()
290 st0[0] = mix_columns(subshift(st1, 0)) ^ rkp[4]; in aes_encrypt()
291 st0[1] = mix_columns(subshift(st1, 1)) ^ rkp[5]; in aes_encrypt()
292 st0[2] = mix_columns(subshift(st1, 2)) ^ rkp[6]; in aes_encrypt()
293 st0[3] = mix_columns(subshift(st1, 3)) ^ rkp[7]; in aes_encrypt()
296 put_unaligned_le32(subshift(st1, 0) ^ rkp[4], out); in aes_encrypt()
297 put_unaligned_le32(subshift(st1, 1) ^ rkp[5], out + 4); in aes_encrypt()
298 put_unaligned_le32(subshift(st1, 2) ^ rkp[6], out + 8); in aes_encrypt()
299 put_unaligned_le32(subshift(st1, 3) ^ rkp[7], out + 12); in aes_encrypt()
311 const u32 *rkp = ctx->key_dec + 4; in aes_decrypt() local
332 for (round = 0;; round += 2, rkp += 8) { in aes_decrypt()
333 st1[0] = inv_mix_columns(inv_subshift(st0, 0)) ^ rkp[0]; in aes_decrypt()
334 st1[1] = inv_mix_columns(inv_subshift(st0, 1)) ^ rkp[1]; in aes_decrypt()
335 st1[2] = inv_mix_columns(inv_subshift(st0, 2)) ^ rkp[2]; in aes_decrypt()
336 st1[3] = inv_mix_columns(inv_subshift(st0, 3)) ^ rkp[3]; in aes_decrypt()
341 st0[0] = inv_mix_columns(inv_subshift(st1, 0)) ^ rkp[4]; in aes_decrypt()
342 st0[1] = inv_mix_columns(inv_subshift(st1, 1)) ^ rkp[5]; in aes_decrypt()
343 st0[2] = inv_mix_columns(inv_subshift(st1, 2)) ^ rkp[6]; in aes_decrypt()
344 st0[3] = inv_mix_columns(inv_subshift(st1, 3)) ^ rkp[7]; in aes_decrypt()
347 put_unaligned_le32(inv_subshift(st1, 0) ^ rkp[4], out); in aes_decrypt()
348 put_unaligned_le32(inv_subshift(st1, 1) ^ rkp[5], out + 4); in aes_decrypt()
349 put_unaligned_le32(inv_subshift(st1, 2) ^ rkp[6], out + 8); in aes_decrypt()
350 put_unaligned_le32(inv_subshift(st1, 3) ^ rkp[7], out + 12); in aes_decrypt()