Lines Matching refs:tfm_ctx
1237 struct artpec6_cryptotfm_context *tfm_ctx = crypto_aead_ctx(tfm); in artpec6_crypto_aead_init() local
1239 memset(tfm_ctx, 0, sizeof(*tfm_ctx)); in artpec6_crypto_aead_init()
2233 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(&tfm->base); in artpec6_crypto_hash_set_key() local
2243 memset(tfm_ctx->hmac_key, 0, sizeof(tfm_ctx->hmac_key)); in artpec6_crypto_hash_set_key()
2248 SHASH_DESC_ON_STACK(hdesc, tfm_ctx->child_hash); in artpec6_crypto_hash_set_key()
2250 hdesc->tfm = tfm_ctx->child_hash; in artpec6_crypto_hash_set_key()
2252 tfm_ctx->hmac_key_length = blocksize; in artpec6_crypto_hash_set_key()
2254 tfm_ctx->hmac_key); in artpec6_crypto_hash_set_key()
2259 memcpy(tfm_ctx->hmac_key, key, keylen); in artpec6_crypto_hash_set_key()
2260 tfm_ctx->hmac_key_length = keylen; in artpec6_crypto_hash_set_key()
2400 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm); in artpec6_crypto_ahash_init_common() local
2404 memset(tfm_ctx, 0, sizeof(*tfm_ctx)); in artpec6_crypto_ahash_init_common()
2415 tfm_ctx->child_hash = child; in artpec6_crypto_ahash_init_common()
2433 struct artpec6_hashalg_context *tfm_ctx = crypto_tfm_ctx(tfm); in artpec6_crypto_ahash_exit() local
2435 if (tfm_ctx->child_hash) in artpec6_crypto_ahash_exit()
2436 crypto_free_shash(tfm_ctx->child_hash); in artpec6_crypto_ahash_exit()
2438 memset(tfm_ctx->hmac_key, 0, sizeof(tfm_ctx->hmac_key)); in artpec6_crypto_ahash_exit()
2439 tfm_ctx->hmac_key_length = 0; in artpec6_crypto_ahash_exit()