/arch/arm64/crypto/ |
D | aes-ce-glue.c | 56 __aes_ce_encrypt(ctx->key_enc, dst, src, num_rounds(ctx)); in aes_cipher_encrypt() 85 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local 95 ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); in ce_aes_expandkey() 99 u32 *rki = ctx->key_enc + (i * kwords); in ce_aes_expandkey() 128 key_enc = (struct aes_block *)ctx->key_enc; in ce_aes_expandkey() 132 key_dec[0] = key_enc[j]; in ce_aes_expandkey() 134 __aes_ce_invert(key_dec + i, key_enc + j); in ce_aes_expandkey() 135 key_dec[i] = key_enc[0]; in ce_aes_expandkey()
|
D | aes-glue.c | 186 ctx->key_enc, rounds, blocks); in ecb_encrypt() 224 ctx->key_enc, rounds, blocks, walk->iv); in cbc_encrypt_walk() 322 ctx->key_enc, rounds, walk.nbytes, walk.iv); in cts_cbc_encrypt() 415 ctx->key1.key_enc, rounds, blocks, in essiv_cbc_encrypt() 416 req->iv, ctx->key2.key_enc); in essiv_cbc_encrypt() 438 req->iv, ctx->key2.key_enc); in essiv_cbc_decrypt() 458 ctx->key_enc, rounds, blocks, walk.iv); in ctr_encrypt() 474 aes_ctr_encrypt(tail, NULL, ctx->key_enc, rounds, in ctr_encrypt() 527 ctx->key1.key_enc, rounds, nbytes, in xts_encrypt() 528 ctx->key2.key_enc, walk.iv, first); in xts_encrypt() [all …]
|
D | aes-ce-ccm-glue.c | 104 ce_aes_ccm_auth_data(mac, in, abytes, macp, key->key_enc, in ccm_update_mac() 254 walk.nbytes - tail, ctx->key_enc, in ccm_encrypt() 262 ce_aes_ccm_final(mac, buf, ctx->key_enc, in ccm_encrypt() 312 walk.nbytes - tail, ctx->key_enc, in ccm_decrypt() 320 ce_aes_ccm_final(mac, buf, ctx->key_enc, in ccm_decrypt()
|
D | aes-neonbs-glue.c | 86 aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); in aesbs_setkey() 144 memcpy(ctx->enc, rk.key_enc, sizeof(ctx->enc)); in aesbs_cbc_setkey() 147 aesbs_convert_key(ctx->key.rk, rk.key_enc, ctx->key.rounds); in aesbs_cbc_setkey() 266 memcpy(ctx->twkey, rk.key_enc, sizeof(ctx->twkey)); in aesbs_xts_setkey() 366 neon_aes_xts_encrypt(out, in, ctx->cts.key_enc, ctx->key.rounds, in __xts_crypt()
|
D | aes-cipher-glue.c | 20 __aes_arm64_encrypt(ctx->key_enc, out, in, rounds); in aes_arm64_encrypt()
|
D | ghash-ce-glue.c | 383 dg, iv, ctx->aes_key.key_enc, nrounds, in gcm_encrypt() 505 dg, iv, ctx->aes_key.key_enc, in gcm_decrypt()
|
/arch/powerpc/crypto/ |
D | aes-spe-glue.c | 42 u32 key_enc[AES_MAX_KEYLENGTH_U32]; member 48 u32 key_enc[AES_MAX_KEYLENGTH_U32]; member 54 extern void ppc_encrypt_aes(u8 *out, const u8 *in, u32 *key_enc, u32 rounds); 56 extern void ppc_encrypt_ecb(u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 60 extern void ppc_encrypt_cbc(u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 64 extern void ppc_crypt_ctr (u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 66 extern void ppc_encrypt_xts(u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 71 extern void ppc_expand_key_128(u32 *key_enc, const u8 *key); 72 extern void ppc_expand_key_192(u32 *key_enc, const u8 *key); 73 extern void ppc_expand_key_256(u32 *key_enc, const u8 *key); [all …]
|
/arch/arm/crypto/ |
D | aes-ce-glue.c | 80 struct aes_block *key_enc, *key_dec; in ce_aes_expandkey() local 90 ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); in ce_aes_expandkey() 94 u32 *rki = ctx->key_enc + (i * kwords); in ce_aes_expandkey() 124 key_enc = (struct aes_block *)ctx->key_enc; in ce_aes_expandkey() 128 key_dec[0] = key_enc[j]; in ce_aes_expandkey() 130 ce_aes_invert(key_dec + i, key_enc + j); in ce_aes_expandkey() 131 key_dec[i] = key_enc[0]; in ce_aes_expandkey() 180 ctx->key_enc, num_rounds(ctx), blocks); in ecb_encrypt() 218 ctx->key_enc, num_rounds(ctx), blocks, in cbc_encrypt_walk() 318 ctx->key_enc, num_rounds(ctx), walk.nbytes, in cts_cbc_encrypt() [all …]
|
D | aes-cipher-glue.c | 21 __aes_arm_encrypt(ctx->key_enc, rounds, in, out); in aes_arm_encrypt()
|
D | aes-neonbs-glue.c | 82 aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); in aesbs_setkey() 141 aesbs_convert_key(ctx->key.rk, rk.key_enc, ctx->key.rounds); in aesbs_cbc_setkey() 229 aesbs_convert_key(ctx->key.rk, ctx->fallback.key_enc, ctx->key.rounds); in aesbs_ctr_setkey_sync()
|