Lines Matching refs:tfm_ctx
1238 struct artpec6_cryptotfm_context *tfm_ctx = crypto_aead_ctx(tfm);
1240 memset(tfm_ctx, 0, sizeof(*tfm_ctx));
2228 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(&tfm->base);
2238 memset(tfm_ctx->hmac_key, 0, sizeof(tfm_ctx->hmac_key));
2243 tfm_ctx->hmac_key_length = blocksize;
2245 ret = crypto_shash_tfm_digest(tfm_ctx->child_hash, key, keylen,
2246 tfm_ctx->hmac_key);
2250 memcpy(tfm_ctx->hmac_key, key, keylen);
2251 tfm_ctx->hmac_key_length = keylen;
2391 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm);
2395 memset(tfm_ctx, 0, sizeof(*tfm_ctx));
2406 tfm_ctx->child_hash = child;
2424 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm);
2426 if (tfm_ctx->child_hash)
2427 crypto_free_shash(tfm_ctx->child_hash);
2429 memset(tfm_ctx->hmac_key, 0, sizeof(tfm_ctx->hmac_key));
2430 tfm_ctx->hmac_key_length = 0;