Lines Matching refs:tfm_ctx
1237 struct artpec6_cryptotfm_context *tfm_ctx = crypto_aead_ctx(tfm);
1239 memset(tfm_ctx, 0, sizeof(*tfm_ctx));
2227 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(&tfm->base);
2237 memset(tfm_ctx->hmac_key, 0, sizeof(tfm_ctx->hmac_key));
2242 tfm_ctx->hmac_key_length = blocksize;
2244 ret = crypto_shash_tfm_digest(tfm_ctx->child_hash, key, keylen,
2245 tfm_ctx->hmac_key);
2249 memcpy(tfm_ctx->hmac_key, key, keylen);
2250 tfm_ctx->hmac_key_length = keylen;
2390 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm);
2394 memset(tfm_ctx, 0, sizeof(*tfm_ctx));
2405 tfm_ctx->child_hash = child;
2423 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm);
2425 if (tfm_ctx->child_hash)
2426 crypto_free_shash(tfm_ctx->child_hash);
2428 memset(tfm_ctx->hmac_key, 0, sizeof(tfm_ctx->hmac_key));
2429 tfm_ctx->hmac_key_length = 0;