• Home
  • Raw
  • Download

Lines Matching refs:in

147 static __always_inline u32 subshift(u32 in[], int pos)  in subshift()  argument
149 return (aes_sbox[in[pos] & 0xff]) ^ in subshift()
150 (aes_sbox[(in[(pos + 1) % 4] >> 8) & 0xff] << 8) ^ in subshift()
151 (aes_sbox[(in[(pos + 2) % 4] >> 16) & 0xff] << 16) ^ in subshift()
152 (aes_sbox[(in[(pos + 3) % 4] >> 24) & 0xff] << 24); in subshift()
155 static __always_inline u32 inv_subshift(u32 in[], int pos) in inv_subshift() argument
157 return (aes_inv_sbox[in[pos] & 0xff]) ^ in inv_subshift()
158 (aes_inv_sbox[(in[(pos + 3) % 4] >> 8) & 0xff] << 8) ^ in inv_subshift()
159 (aes_inv_sbox[(in[(pos + 2) % 4] >> 16) & 0xff] << 16) ^ in inv_subshift()
160 (aes_inv_sbox[(in[(pos + 1) % 4] >> 24) & 0xff] << 24); in inv_subshift()
163 static u32 subw(u32 in) in subw() argument
165 return (aes_sbox[in & 0xff]) ^ in subw()
166 (aes_sbox[(in >> 8) & 0xff] << 8) ^ in subw()
167 (aes_sbox[(in >> 16) & 0xff] << 16) ^ in subw()
168 (aes_sbox[(in >> 24) & 0xff] << 24); in subw()
258 void aes_encrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in) in aes_encrypt() argument
265 st0[0] = ctx->key_enc[0] ^ get_unaligned_le32(in); in aes_encrypt()
266 st0[1] = ctx->key_enc[1] ^ get_unaligned_le32(in + 4); in aes_encrypt()
267 st0[2] = ctx->key_enc[2] ^ get_unaligned_le32(in + 8); in aes_encrypt()
268 st0[3] = ctx->key_enc[3] ^ get_unaligned_le32(in + 12); in aes_encrypt()
309 void aes_decrypt(const struct crypto_aes_ctx *ctx, u8 *out, const u8 *in) in aes_decrypt() argument
316 st0[0] = ctx->key_dec[0] ^ get_unaligned_le32(in); in aes_decrypt()
317 st0[1] = ctx->key_dec[1] ^ get_unaligned_le32(in + 4); in aes_decrypt()
318 st0[2] = ctx->key_dec[2] ^ get_unaligned_le32(in + 8); in aes_decrypt()
319 st0[3] = ctx->key_dec[3] ^ get_unaligned_le32(in + 12); in aes_decrypt()