Home
last modified time | relevance | path

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

/drivers/crypto/xilinx/
A Dzynqmp-aes-gcm.c82 struct device *dev = tfm_ctx->dev; in zynqmp_aes_aead_cipher()
116 hwreq->keysrc = tfm_ctx->keysrc; in zynqmp_aes_aead_cipher()
245 struct zynqmp_aead_tfm_ctx *tfm_ctx = in zynqmp_aes_aead_setkey() local
256 tfm_ctx->keylen = keylen; in zynqmp_aes_aead_setkey()
259 tfm_ctx->keylen = keylen; in zynqmp_aes_aead_setkey()
262 memcpy(tfm_ctx->key, key, keylen); in zynqmp_aes_aead_setkey()
280 tfm_ctx->authsize = authsize; in zynqmp_aes_aead_setauthsize()
319 tfm_ctx->dev = drv_ctx->dev; in zynqmp_aes_aead_init()
325 if (IS_ERR(tfm_ctx->fbk_cipher)) { in zynqmp_aes_aead_init()
344 if (tfm_ctx->fbk_cipher) { in zynqmp_aes_aead_exit()
[all …]
A Dzynqmp-sha.c47 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); in zynqmp_sha_init_tfm() local
53 tfm_ctx->dev = drv_ctx->dev; in zynqmp_sha_init_tfm()
62 crypto_shash_statesize(tfm_ctx->fbk_tfm)) { in zynqmp_sha_init_tfm()
67 tfm_ctx->fbk_tfm = fallback_tfm; in zynqmp_sha_init_tfm()
74 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); in zynqmp_sha_exit_tfm() local
76 crypto_free_shash(tfm_ctx->fbk_tfm); in zynqmp_sha_exit_tfm()
/drivers/crypto/axis/
A Dartpec6_crypto.c1240 memset(tfm_ctx, 0, sizeof(*tfm_ctx)); in artpec6_crypto_aead_init()
2242 memset(tfm_ctx->hmac_key, 0, sizeof(tfm_ctx->hmac_key)); in artpec6_crypto_hash_set_key()
2247 tfm_ctx->hmac_key_length = blocksize; in artpec6_crypto_hash_set_key()
2250 tfm_ctx->hmac_key); in artpec6_crypto_hash_set_key()
2254 memcpy(tfm_ctx->hmac_key, key, keylen); in artpec6_crypto_hash_set_key()
2255 tfm_ctx->hmac_key_length = keylen; in artpec6_crypto_hash_set_key()
2399 memset(tfm_ctx, 0, sizeof(*tfm_ctx)); in artpec6_crypto_ahash_init_common()
2410 tfm_ctx->child_hash = child; in artpec6_crypto_ahash_init_common()
2430 if (tfm_ctx->child_hash) in artpec6_crypto_ahash_exit()
2433 memset(tfm_ctx->hmac_key, 0, sizeof(tfm_ctx->hmac_key)); in artpec6_crypto_ahash_exit()
[all …]
/drivers/crypto/hisilicon/sec/
A Dsec_drv.h278 struct sec_alg_tfm_ctx *tfm_ctx; member
A Dsec_algs.c430 struct sec_alg_tfm_ctx *ctx = sec_req->tfm_ctx; in sec_skcipher_alg_callback()
752 sec_req->tfm_ctx = ctx; in sec_alg_skcipher_crypto()

Completed in 23 milliseconds