Home
last modified time | relevance | path

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

/Linux-v6.6/arch/x86/crypto/
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_ctx(tfm)); in cts_cbc_encrypt()
[all …]
/Linux-v6.6/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-v6.6/lib/crypto/
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()
/Linux-v6.6/arch/arm/crypto/
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()
/Linux-v6.6/include/crypto/
Dgcm.h69 struct crypto_aes_ctx aes_ctx; member
/Linux-v6.6/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
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()