Home
last modified time | relevance | path

Searched refs:tfm_ctx (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/crypto/xilinx/
H A Dzynqmp-aes-gcm.c140 struct xilinx_aead_tfm_ctx *tfm_ctx = crypto_aead_ctx(aead); in zynqmp_aes_aead_cipher() local
143 struct device *dev = tfm_ctx->dev; in zynqmp_aes_aead_cipher()
174 hwreq->keysrc = tfm_ctx->keysrc; in zynqmp_aes_aead_cipher()
183 hwreq->key = tfm_ctx->key_dma_addr; in zynqmp_aes_aead_cipher()
244 struct xilinx_aead_tfm_ctx *tfm_ctx = crypto_aead_ctx(aead); in versal_aes_aead_cipher() local
248 struct device *dev = tfm_ctx->dev; in versal_aes_aead_cipher()
291 hwreq->keysrc = tfm_ctx->keysrc; in versal_aes_aead_cipher()
303 if (tfm_ctx->keylen == AES_KEYSIZE_128) in versal_aes_aead_cipher()
311 tfm_ctx->key_dma_addr); in versal_aes_aead_cipher()
376 static int zynqmp_fallback_check(struct xilinx_aead_tfm_ctx *tfm_ctx, in zynqmp_fallback_check() argument
[all …]
/linux/arch/s390/crypto/
H A Dphmac_s390.c303 static inline int phmac_tfm_ctx_setkey(struct phmac_tfm_ctx *tfm_ctx, in phmac_tfm_ctx_setkey() argument
306 if (keylen > sizeof(tfm_ctx->keybuf)) in phmac_tfm_ctx_setkey()
309 memcpy(tfm_ctx->keybuf, key, keylen); in phmac_tfm_ctx_setkey()
310 tfm_ctx->keylen = keylen; in phmac_tfm_ctx_setkey()
367 static int phmac_convert_key(struct phmac_tfm_ctx *tfm_ctx, bool tested) in phmac_convert_key() argument
372 spin_lock_bh(&tfm_ctx->pk_lock); in phmac_convert_key()
373 tfm_ctx->pk_state = PK_STATE_CONVERT_IN_PROGRESS; in phmac_convert_key()
374 spin_unlock_bh(&tfm_ctx->pk_lock); in phmac_convert_key()
376 rc = convert_key(tfm_ctx->keybuf, tfm_ctx->keylen, &pk, tested); in phmac_convert_key()
379 spin_lock_bh(&tfm_ctx->pk_lock); in phmac_convert_key()
[all …]
H A Dhmac_s390.c172 struct s390_hmac_ctx *tfm_ctx = crypto_shash_ctx(tfm); in s390_hmac_sha2_setkey() local
176 memset(tfm_ctx, 0, sizeof(*tfm_ctx)); in s390_hmac_sha2_setkey()
179 return hash_key(key, keylen, tfm_ctx->key, ds); in s390_hmac_sha2_setkey()
181 memcpy(tfm_ctx->key, key, keylen); in s390_hmac_sha2_setkey()
187 struct s390_hmac_ctx *tfm_ctx = crypto_shash_ctx(desc->tfm); in s390_hmac_sha2_init() local
192 tfm_ctx->key, bs); in s390_hmac_sha2_init()
/linux/drivers/crypto/hisilicon/sec/
H A Dsec_drv.h278 struct sec_alg_tfm_ctx *tfm_ctx; member