Home
last modified time | relevance | path

Searched refs:aes_ctx (Results 1 - 9 of 9) sorted by relevance

/kernel/linux/linux-6.6/arch/x86/crypto/
H A Daesni-intel_glue.c222 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) in aes_ctx() function
255 return aes_set_key_common(aes_ctx(crypto_tfm_ctx(tfm)), in_key, in aes_set_key()
261 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt()
274 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_decrypt()
288 return aes_set_key_common(aes_ctx(crypto_skcipher_ctx(tfm)), key, len); in aesni_skcipher_setkey()
294 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_encrypt()
316 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_decrypt()
338 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_encrypt()
360 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_decrypt()
382 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ct in cts_cbc_encrypt()
669 gcmaes_crypt_by_sg(bool enc, struct aead_request *req, unsigned int assoclen, u8 *hash_subkey, u8 *iv, void *aes_ctx, u8 *auth_tag, unsigned long auth_tag_len) gcmaes_crypt_by_sg() argument
779 gcmaes_encrypt(struct aead_request *req, unsigned int assoclen, u8 *hash_subkey, u8 *iv, void *aes_ctx) gcmaes_encrypt() argument
798 gcmaes_decrypt(struct aead_request *req, unsigned int assoclen, u8 *hash_subkey, u8 *iv, void *aes_ctx) gcmaes_decrypt() argument
829 void *aes_ctx = &(ctx->aes_key_expanded); helper_rfc4106_encrypt() local
857 void *aes_ctx = &(ctx->aes_key_expanded); helper_rfc4106_decrypt() local
1158 void *aes_ctx = &(ctx->aes_key_expanded); generic_gcmaes_encrypt() local
1175 void *aes_ctx = &(ctx->aes_key_expanded); generic_gcmaes_decrypt() local
[all...]
/kernel/linux/linux-5.10/drivers/crypto/
H A Dpadlock-aes.c60 struct aes_ctx { struct
87 static inline struct aes_ctx *aes_ctx_common(void *ctx) in aes_ctx_common()
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(tf in padlock_aes_encrypt()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/
H A Dpadlock-aes.c60 struct aes_ctx { struct
87 static inline struct aes_ctx *aes_ctx_common(void *ctx) in aes_ctx_common()
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(tf in padlock_aes_encrypt()
[all...]
/kernel/linux/linux-5.10/arch/x86/crypto/
H A Daesni-intel_glue.c302 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) in aes_ctx() function
315 struct crypto_aes_ctx *ctx = aes_ctx(raw_ctx); in aes_set_key_common()
341 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt()
354 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_decrypt()
375 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_encrypt()
397 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_decrypt()
419 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_encrypt()
441 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_decrypt()
496 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ctr_crypt()
595 aes_ctx(ct in xts_encrypt()
685 gcmaes_crypt_by_sg(bool enc, struct aead_request *req, unsigned int assoclen, u8 *hash_subkey, u8 *iv, void *aes_ctx) gcmaes_crypt_by_sg() argument
815 gcmaes_encrypt(struct aead_request *req, unsigned int assoclen, u8 *hash_subkey, u8 *iv, void *aes_ctx) gcmaes_encrypt() argument
822 gcmaes_decrypt(struct aead_request *req, unsigned int assoclen, u8 *hash_subkey, u8 *iv, void *aes_ctx) gcmaes_decrypt() argument
833 void *aes_ctx = &(ctx->aes_key_expanded); helper_rfc4106_encrypt() local
861 void *aes_ctx = &(ctx->aes_key_expanded); helper_rfc4106_decrypt() local
992 void *aes_ctx = &(ctx->aes_key_expanded); generic_gcmaes_encrypt() local
1009 void *aes_ctx = &(ctx->aes_key_expanded); generic_gcmaes_decrypt() local
[all...]
/kernel/linux/linux-6.6/lib/crypto/
H A Daesgcm.c53 aes_expandkey(&ctx->aes_ctx, key, keysize); in aesgcm_expandkey()
58 aesgcm_encrypt_block(&ctx->aes_ctx, &ctx->ghash_key, kin); in aesgcm_expandkey()
88 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_mac()
110 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_crypt()
/kernel/linux/linux-6.6/include/crypto/
H A Dgcm.h69 struct crypto_aes_ctx aes_ctx; member
/kernel/linux/linux-6.6/arch/arm/crypto/
H A Dghash-ce-glue.c386 struct crypto_aes_ctx aes_ctx; in gcm_aes_setkey() local
390 ret = aes_expandkey(&aes_ctx, inkey, keylen); in gcm_aes_setkey()
394 aes_encrypt(&aes_ctx, (u8 *)&k, (u8[AES_BLOCK_SIZE]){}); in gcm_aes_setkey()
396 memcpy(ctx->rk, aes_ctx.key_enc, sizeof(ctx->rk)); in gcm_aes_setkey()
399 memzero_explicit(&aes_ctx, sizeof(aes_ctx)); in gcm_aes_setkey()
/kernel/linux/linux-5.10/drivers/crypto/mediatek/
H A 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()
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.c78 struct crypto_aes_ctx aes_ctx; in chcr_ktls_save_keys() local
140 ret = aes_expandkey(&aes_ctx, key, keylen); in chcr_ktls_save_keys()
145 aes_encrypt(&aes_ctx, ghash_h, ghash_h); in chcr_ktls_save_keys()
146 memzero_explicit(&aes_ctx, sizeof(aes_ctx)); in chcr_ktls_save_keys()

Completed in 11 milliseconds