Home
last modified time | relevance | path

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

/linux/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.c49 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); in zynqmp_sha_init_tfm() local
55 tfm_ctx->dev = drv_ctx->dev; in zynqmp_sha_init_tfm()
63 tfm_ctx->fbk_tfm = fallback_tfm; in zynqmp_sha_init_tfm()
64 hash->descsize += crypto_shash_descsize(tfm_ctx->fbk_tfm); in zynqmp_sha_init_tfm()
71 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); in zynqmp_sha_exit_tfm() local
73 if (tfm_ctx->fbk_tfm) { in zynqmp_sha_exit_tfm()
74 crypto_free_shash(tfm_ctx->fbk_tfm); in zynqmp_sha_exit_tfm()
75 tfm_ctx->fbk_tfm = NULL; in zynqmp_sha_exit_tfm()
78 memzero_explicit(tfm_ctx, sizeof(struct zynqmp_sha_tfm_ctx)); in zynqmp_sha_exit_tfm()
/linux/crypto/
A Ddh.c316 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_init_tfm() local
318 tfm_ctx->dh_tfm = crypto_spawn_kpp(&inst_ctx->dh_spawn); in dh_safe_prime_init_tfm()
319 if (IS_ERR(tfm_ctx->dh_tfm)) in dh_safe_prime_init_tfm()
320 return PTR_ERR(tfm_ctx->dh_tfm); in dh_safe_prime_init_tfm()
323 crypto_kpp_reqsize(tfm_ctx->dh_tfm)); in dh_safe_prime_init_tfm()
330 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_exit_tfm() local
332 crypto_free_kpp(tfm_ctx->dh_tfm); in dh_safe_prime_exit_tfm()
462 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); in dh_safe_prime_set_secret() local
516 struct dh_safe_prime_tfm_ctx *tfm_ctx = in dh_safe_prime_prepare_dh_req() local
520 kpp_request_set_tfm(dh_req, tfm_ctx->dh_tfm); in dh_safe_prime_prepare_dh_req()
[all …]
A Dscompress.c116 void **tfm_ctx = acomp_tfm_ctx(tfm); in scomp_acomp_comp_decomp() local
117 struct crypto_scomp *scomp = *tfm_ctx; in scomp_acomp_comp_decomp()
238 struct crypto_scomp **tfm_ctx = crypto_tfm_ctx(tfm); in crypto_acomp_scomp_alloc_ctx() local
239 struct crypto_scomp *scomp = *tfm_ctx; in crypto_acomp_scomp_alloc_ctx()
257 struct crypto_scomp **tfm_ctx = crypto_tfm_ctx(tfm); in crypto_acomp_scomp_free_ctx() local
258 struct crypto_scomp *scomp = *tfm_ctx; in crypto_acomp_scomp_free_ctx()
/linux/arch/s390/crypto/
A Dhmac_s390.c157 struct s390_hmac_ctx *tfm_ctx = crypto_shash_ctx(tfm); in s390_hmac_sha2_setkey() local
161 memset(tfm_ctx, 0, sizeof(*tfm_ctx)); in s390_hmac_sha2_setkey()
164 return hash_key(key, keylen, tfm_ctx->key, ds); in s390_hmac_sha2_setkey()
166 memcpy(tfm_ctx->key, key, keylen); in s390_hmac_sha2_setkey()
172 struct s390_hmac_ctx *tfm_ctx = crypto_shash_ctx(desc->tfm); in s390_hmac_sha2_init() local
177 tfm_ctx->key, bs); in s390_hmac_sha2_init()
/linux/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 …]
/linux/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 21 milliseconds