Home
last modified time | relevance | path

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

/linux-6.15/drivers/crypto/
H A Dpadlock-aes.c60 struct aes_ctx { struct
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
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()
372 struct aes_ctx *ctx = skcipher_aes_ctx(tfm); in ecb_aes_decrypt()
399 .base.cra_ctxsize = sizeof(struct aes_ctx),
[all …]
/linux-6.15/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()
101 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_mac()
123 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_crypt()
/linux-6.15/arch/arm/crypto/
H A Dghash-ce-glue.c211 struct crypto_aes_ctx aes_ctx; in gcm_aes_setkey() local
215 ret = aes_expandkey(&aes_ctx, inkey, keylen); in gcm_aes_setkey()
219 aes_encrypt(&aes_ctx, (u8 *)&k, (u8[AES_BLOCK_SIZE]){}); in gcm_aes_setkey()
221 memcpy(ctx->rk, aes_ctx.key_enc, sizeof(ctx->rk)); in gcm_aes_setkey()
224 memzero_explicit(&aes_ctx, sizeof(aes_ctx)); in gcm_aes_setkey()
/linux-6.15/arch/x86/crypto/
H A Daesni-intel_glue.c88 static inline struct crypto_aes_ctx *aes_ctx(void *raw_ctx) in aes_ctx() function
119 return aes_set_key_common(aes_ctx(crypto_tfm_ctx(tfm)), in_key, in aes_set_key()
125 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_encrypt()
138 struct crypto_aes_ctx *ctx = aes_ctx(crypto_tfm_ctx(tfm)); in aesni_decrypt()
158 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_encrypt()
180 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in ecb_decrypt()
202 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_encrypt()
224 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cbc_decrypt()
246 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cts_cbc_encrypt()
302 struct crypto_aes_ctx *ctx = aes_ctx(crypto_skcipher_ctx(tfm)); in cts_cbc_decrypt()
[all …]
/linux-6.15/include/crypto/
H A Dgcm.h69 struct crypto_aes_ctx aes_ctx; member
/linux-6.15/drivers/char/tpm/
H A Dtpm2-sessions.c129 struct crypto_aes_ctx aes_ctx; member
675 aes_expandkey(&auth->aes_ctx, auth->scratch, AES_KEY_BYTES); in tpm_buf_fill_hmac_session()
676 aescfb_encrypt(&auth->aes_ctx, &buf->data[offset_p], in tpm_buf_fill_hmac_session()
848 aes_expandkey(&auth->aes_ctx, auth->scratch, AES_KEY_BYTES); in tpm_buf_check_hmac_response()
849 aescfb_decrypt(&auth->aes_ctx, &buf->data[offset_p], in tpm_buf_check_hmac_response()
/linux-6.15/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
H A Dchcr_ktls.c79 struct crypto_aes_ctx aes_ctx; in chcr_ktls_save_keys() local
141 ret = aes_expandkey(&aes_ctx, key, keylen); in chcr_ktls_save_keys()
146 aes_encrypt(&aes_ctx, ghash_h, ghash_h); in chcr_ktls_save_keys()
147 memzero_explicit(&aes_ctx, sizeof(aes_ctx)); in chcr_ktls_save_keys()