Home
last modified time | relevance | path

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

/linux/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() 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/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/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()
/linux/include/crypto/
H A Dgcm.h69 struct crypto_aes_ctx aes_ctx; member
/linux/drivers/char/tpm/
H A Dtpm2-sessions.c134 struct crypto_aes_ctx aes_ctx; member
680 aes_expandkey(&auth->aes_ctx, auth->scratch, AES_KEY_BYTES); in tpm_buf_fill_hmac_session()
681 aescfb_encrypt(&auth->aes_ctx, &buf->data[offset_p], in tpm_buf_fill_hmac_session()
853 aes_expandkey(&auth->aes_ctx, auth->scratch, AES_KEY_BYTES); in tpm_buf_check_hmac_response()
854 aescfb_decrypt(&auth->aes_ctx, &buf->data[offset_p], in tpm_buf_check_hmac_response()
/linux/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()