Home
last modified time | relevance | path

Searched refs:crypto_aes_ctx (Results 1 – 12 of 12) sorted by relevance

/linux-4.1.27/arch/x86/crypto/
Daes_glue.c10 asmlinkage void aes_enc_blk(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
11 asmlinkage void aes_dec_blk(struct crypto_aes_ctx *ctx, u8 *out, const u8 *in);
13 void crypto_aes_encrypt_x86(struct crypto_aes_ctx *ctx, u8 *dst, const u8 *src) in crypto_aes_encrypt_x86()
19 void crypto_aes_decrypt_x86(struct crypto_aes_ctx *ctx, u8 *dst, const u8 *src) in crypto_aes_decrypt_x86()
41 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
Daesni-intel_glue.c53 struct crypto_aes_ctx aes_key_expanded;
75 u8 raw_aes_ctx[sizeof(struct crypto_aes_ctx) + AESNI_ALIGN - 1];
79 u8 raw_tweak_ctx[sizeof(struct crypto_aes_ctx) + AESNI_ALIGN - 1];
80 u8 raw_crypt_ctx[sizeof(struct crypto_aes_ctx) + AESNI_ALIGN - 1];
83 asmlinkage int aesni_set_key(struct crypto_aes_ctx *ctx, const u8 *in_key,
85 asmlinkage void aesni_enc(struct crypto_aes_ctx *ctx, u8 *out,
87 asmlinkage void aesni_dec(struct crypto_aes_ctx *ctx, u8 *out,
89 asmlinkage void aesni_ecb_enc(struct crypto_aes_ctx *ctx, u8 *out,
91 asmlinkage void aesni_ecb_dec(struct crypto_aes_ctx *ctx, u8 *out,
93 asmlinkage void aesni_cbc_enc(struct crypto_aes_ctx *ctx, u8 *out,
[all …]
/linux-4.1.27/arch/arm64/crypto/
Daes-ce-cipher.c27 static int num_rounds(struct crypto_aes_ctx *ctx) in num_rounds()
41 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_encrypt()
86 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_cipher_decrypt()
149 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in ce_aes_expandkey()
225 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ce_aes_setkey()
243 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
Daes-glue.c78 struct crypto_aes_ctx key1;
79 struct crypto_aes_ctx __aligned(8) key2;
102 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_encrypt()
124 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_decrypt()
146 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_encrypt()
169 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_decrypt()
192 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ctr_encrypt()
290 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
309 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
328 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
Daes-ce-ccm-glue.c21 static int num_rounds(struct crypto_aes_ctx *ctx) in num_rounds()
50 struct crypto_aes_ctx *ctx = crypto_aead_ctx(tfm); in ccm_setkey()
109 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_calculate_auth_mac()
151 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_encrypt()
206 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead); in ccm_decrypt()
267 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
Daes-ce-setkey.h4 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key,
/linux-4.1.27/arch/arm/crypto/
Daes-ce-glue.c51 static int num_rounds(struct crypto_aes_ctx *ctx) in num_rounds()
63 static int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in ce_aes_expandkey()
133 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in ce_aes_setkey()
145 struct crypto_aes_ctx key1;
146 struct crypto_aes_ctx __aligned(8) key2;
169 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_encrypt()
192 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_decrypt()
215 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_encrypt()
239 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_decrypt()
263 struct crypto_aes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ctr_encrypt()
[all …]
/linux-4.1.27/arch/x86/include/asm/crypto/
Daes.h7 void crypto_aes_encrypt_x86(struct crypto_aes_ctx *ctx, u8 *dst,
9 void crypto_aes_decrypt_x86(struct crypto_aes_ctx *ctx, u8 *dst,
/linux-4.1.27/include/crypto/
Daes.h24 struct crypto_aes_ctx { struct
37 int crypto_aes_expand_key(struct crypto_aes_ctx *ctx, const u8 *in_key, argument
/linux-4.1.27/crypto/
Daes_generic.c1216 int crypto_aes_expand_key(struct crypto_aes_ctx *ctx, const u8 *in_key, in crypto_aes_expand_key()
1285 struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_set_key()
1331 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_encrypt()
1403 const struct crypto_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_decrypt()
1448 .cra_ctxsize = sizeof(struct crypto_aes_ctx),
/linux-4.1.27/drivers/crypto/
Dpadlock-aes.c110 struct crypto_aes_ctx gen_aes; in aes_set_key()
Dmv_cesa.c171 struct crypto_aes_ctx gen_aes_key; in compute_aes_dec_key()