Home
last modified time | relevance | path

Searched refs:aes_ctx (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/crypto/
Dpadlock-aes.c60 struct aes_ctx { struct
87 static inline struct aes_ctx *aes_ctx_common(void *ctx) in aes_ctx_common() argument
94 return (struct aes_ctx *)ALIGN(addr, align); in aes_ctx_common()
97 static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm) in aes_ctx() function
102 static inline struct aes_ctx *skcipher_aes_ctx(struct crypto_skcipher *tfm) in skcipher_aes_ctx()
110 struct aes_ctx *ctx = aes_ctx(tfm); in aes_set_key()
308 struct aes_ctx *ctx = aes_ctx(tfm); in padlock_aes_encrypt()
317 struct aes_ctx *ctx = aes_ctx(tfm); in padlock_aes_decrypt()
330 .cra_ctxsize = sizeof(struct aes_ctx),
347 struct aes_ctx *ctx = skcipher_aes_ctx(tfm); in ecb_aes_encrypt()
[all …]
/Linux-v5.10/arch/x86/crypto/
Daesni-intel_glue.c299 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) in aes_ctx() function
312 struct crypto_aes_ctx *ctx = aes_ctx(raw_ctx); in aes_set_key_common()
338 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt()
351 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_decrypt()
372 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_encrypt()
394 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_decrypt()
416 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_encrypt()
438 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_decrypt()
493 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ctr_crypt()
592 aes_ctx(ctx->raw_tweak_ctx), in xts_encrypt()
[all …]
/Linux-v5.10/drivers/crypto/mediatek/
Dmtk-aes.c984 struct crypto_aes_ctx aes_ctx; in mtk_aes_gcm_setkey() local
1005 err = aes_expandkey(&aes_ctx, key, keylen); in mtk_aes_gcm_setkey()
1009 aes_encrypt(&aes_ctx, hash.x8, hash.x8); in mtk_aes_gcm_setkey()
1010 memzero_explicit(&aes_ctx, sizeof(aes_ctx)); in mtk_aes_gcm_setkey()