Home
last modified time | relevance | path

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

/linux-4.1.27/crypto/
Daes_generic.c1150 t ^= ctx->key_enc[4 * i]; \
1151 ctx->key_enc[4 * i + 4] = t; \
1152 t ^= ctx->key_enc[4 * i + 1]; \
1153 ctx->key_enc[4 * i + 5] = t; \
1154 t ^= ctx->key_enc[4 * i + 2]; \
1155 ctx->key_enc[4 * i + 6] = t; \
1156 t ^= ctx->key_enc[4 * i + 3]; \
1157 ctx->key_enc[4 * i + 7] = t; \
1163 t ^= ctx->key_enc[6 * i]; \
1164 ctx->key_enc[6 * i + 6] = t; \
[all …]
/linux-4.1.27/arch/powerpc/crypto/
Daes-spe-glue.c43 u32 key_enc[AES_MAX_KEYLENGTH_U32]; member
49 u32 key_enc[AES_MAX_KEYLENGTH_U32]; member
55 extern void ppc_encrypt_aes(u8 *out, const u8 *in, u32 *key_enc, u32 rounds);
57 extern void ppc_encrypt_ecb(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
61 extern void ppc_encrypt_cbc(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
65 extern void ppc_crypt_ctr (u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
67 extern void ppc_encrypt_xts(u8 *out, const u8 *in, u32 *key_enc, u32 rounds,
72 extern void ppc_expand_key_128(u32 *key_enc, const u8 *key);
73 extern void ppc_expand_key_192(u32 *key_enc, const u8 *key);
74 extern void ppc_expand_key_256(u32 *key_enc, const u8 *key);
[all …]
/linux-4.1.27/arch/arm64/crypto/
Daes-ce-cipher.c77 "1"(ctx->key_enc), in aes_cipher_encrypt()
160 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local
168 memcpy(ctx->key_enc, in_key, key_len); in ce_aes_expandkey()
173 u32 *rki = ctx->key_enc + (i * kwords); in ce_aes_expandkey()
202 key_enc = (struct aes_block *)ctx->key_enc; in ce_aes_expandkey()
206 key_dec[0] = key_enc[j]; in ce_aes_expandkey()
213 : [in] "Q"(key_enc[j]) in ce_aes_expandkey()
215 key_dec[i] = key_enc[0]; in ce_aes_expandkey()
Daes-ce-ccm-glue.c125 ce_aes_ccm_auth_data(mac, (u8 *)&ltag, ltag.len, &macp, ctx->key_enc, in ccm_calculate_auth_mac()
138 ce_aes_ccm_auth_data(mac, p, n, &macp, ctx->key_enc, in ccm_calculate_auth_mac()
182 walk.nbytes - tail, ctx->key_enc, in ccm_encrypt()
189 ce_aes_ccm_final(mac, buf, ctx->key_enc, num_rounds(ctx)); in ccm_encrypt()
238 walk.nbytes - tail, ctx->key_enc, in ccm_decrypt()
245 ce_aes_ccm_final(mac, buf, ctx->key_enc, num_rounds(ctx)); in ccm_decrypt()
Daes-glue.c114 (u8 *)ctx->key_enc, rounds, blocks, first); in ecb_encrypt()
158 (u8 *)ctx->key_enc, rounds, blocks, walk.iv, in cbc_encrypt()
205 (u8 *)ctx->key_enc, rounds, blocks, walk.iv, in ctr_encrypt()
225 aes_ctr_encrypt(tail, tsrc, (u8 *)ctx->key_enc, rounds, in ctr_encrypt()
250 (u8 *)ctx->key1.key_enc, rounds, blocks, in xts_encrypt()
251 (u8 *)ctx->key2.key_enc, walk.iv, first); in xts_encrypt()
275 (u8 *)ctx->key2.key_enc, walk.iv, first); in xts_decrypt()
/linux-4.1.27/arch/arm/crypto/
Daes-ce-glue.c74 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local
82 memcpy(ctx->key_enc, in_key, key_len); in ce_aes_expandkey()
87 u32 *rki = ctx->key_enc + (i * kwords); in ce_aes_expandkey()
117 key_enc = (struct aes_block *)ctx->key_enc; in ce_aes_expandkey()
121 key_dec[0] = key_enc[j]; in ce_aes_expandkey()
123 ce_aes_invert(key_dec + i, key_enc + j); in ce_aes_expandkey()
124 key_dec[i] = key_enc[0]; in ce_aes_expandkey()
181 (u8 *)ctx->key_enc, num_rounds(ctx), blocks); in ecb_encrypt()
227 (u8 *)ctx->key_enc, num_rounds(ctx), blocks, in cbc_encrypt()
274 (u8 *)ctx->key_enc, num_rounds(ctx), blocks, in ctr_encrypt()
[all …]
/linux-4.1.27/include/crypto/
Daes.h25 u32 key_enc[AES_MAX_KEYLENGTH_U32]; member
/linux-4.1.27/drivers/crypto/
Dmv_cesa.c180 memcpy(ctx->aes_dec_key, &gen_aes_key.key_enc[key_pos], 4 * 4); in compute_aes_dec_key()
187 memcpy(&ctx->aes_dec_key[4], &gen_aes_key.key_enc[key_pos], in compute_aes_dec_key()
Dpadlock-aes.c152 memcpy(ctx->E, gen_aes.key_enc, AES_MAX_KEYLENGTH); in aes_set_key()
/linux-4.1.27/arch/x86/crypto/
Daesni-intel_glue.c917 if ((unsigned long)(&(ctx->aes_key_expanded.key_enc[0])) % AESNI_ALIGN) in common_rfc4106_set_key()