Searched refs:tfm_ctx (Results 1 - 7 of 7) sorted by relevance

/linux-master/drivers/crypto/xilinx/
H A Dzynqmp-aes-gcm.c80 struct zynqmp_aead_tfm_ctx *tfm_ctx = crypto_aead_ctx(aead); local
82 struct device *dev = tfm_ctx->dev;
92 if (tfm_ctx->keysrc == ZYNQMP_AES_KUP_KEY)
116 hwreq->keysrc = tfm_ctx->keysrc;
126 tfm_ctx->key, ZYNQMP_AES_KEY_SIZE);
177 static int zynqmp_fallback_check(struct zynqmp_aead_tfm_ctx *tfm_ctx, argument
183 if (tfm_ctx->authsize != ZYNQMP_AES_AUTH_SIZE)
186 if (tfm_ctx->keysrc == ZYNQMP_AES_KUP_KEY &&
187 tfm_ctx->keylen != ZYNQMP_AES_KEY_SIZE) {
210 struct zynqmp_aead_tfm_ctx *tfm_ctx local
245 struct zynqmp_aead_tfm_ctx *tfm_ctx = local
277 struct zynqmp_aead_tfm_ctx *tfm_ctx = local
313 struct zynqmp_aead_tfm_ctx *tfm_ctx = local
341 struct zynqmp_aead_tfm_ctx *tfm_ctx = local
[all...]
H A Dzynqmp-sha.c49 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); local
55 tfm_ctx->dev = drv_ctx->dev;
63 tfm_ctx->fbk_tfm = fallback_tfm;
64 hash->descsize += crypto_shash_descsize(tfm_ctx->fbk_tfm);
71 struct zynqmp_sha_tfm_ctx *tfm_ctx = crypto_shash_ctx(hash); local
73 if (tfm_ctx->fbk_tfm) {
74 crypto_free_shash(tfm_ctx->fbk_tfm);
75 tfm_ctx->fbk_tfm = NULL;
78 memzero_explicit(tfm_ctx, sizeof(struct zynqmp_sha_tfm_ctx));
/linux-master/crypto/
H A Ddh.c316 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); local
318 tfm_ctx->dh_tfm = crypto_spawn_kpp(&inst_ctx->dh_spawn);
319 if (IS_ERR(tfm_ctx->dh_tfm))
320 return PTR_ERR(tfm_ctx->dh_tfm);
323 crypto_kpp_reqsize(tfm_ctx->dh_tfm));
330 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); local
332 crypto_free_kpp(tfm_ctx->dh_tfm);
462 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); local
500 err = crypto_kpp_set_secret(tfm_ctx->dh_tfm, buf, buf_size);
516 struct dh_safe_prime_tfm_ctx *tfm_ctx local
546 struct dh_safe_prime_tfm_ctx *tfm_ctx = kpp_tfm_ctx(tfm); local
[all...]
H A Dscompress.c116 void **tfm_ctx = acomp_tfm_ctx(tfm); local
117 struct crypto_scomp *scomp = *tfm_ctx;
238 struct crypto_scomp **tfm_ctx = crypto_tfm_ctx(tfm); local
239 struct crypto_scomp *scomp = *tfm_ctx;
257 struct crypto_scomp **tfm_ctx = crypto_tfm_ctx(tfm); local
258 struct crypto_scomp *scomp = *tfm_ctx;
/linux-master/drivers/crypto/axis/
H A Dartpec6_crypto.c1238 struct artpec6_cryptotfm_context *tfm_ctx = crypto_aead_ctx(tfm); local
1240 memset(tfm_ctx, 0, sizeof(*tfm_ctx));
2232 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(&tfm->base); local
2242 memset(tfm_ctx->hmac_key, 0, sizeof(tfm_ctx->hmac_key));
2247 tfm_ctx->hmac_key_length = blocksize;
2249 ret = crypto_shash_tfm_digest(tfm_ctx->child_hash, key, keylen,
2250 tfm_ctx->hmac_key);
2254 memcpy(tfm_ctx
2395 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm); local
2428 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm); local
[all...]
/linux-master/drivers/crypto/hisilicon/sec/
H A Dsec_drv.h258 * @tfm_ctx: hardware specific context.
278 struct sec_alg_tfm_ctx *tfm_ctx; member in struct:sec_request
H A Dsec_algs.c430 struct sec_alg_tfm_ctx *ctx = sec_req->tfm_ctx;
752 sec_req->tfm_ctx = ctx;

Completed in 243 milliseconds