Lines Matching refs:tfm
37 static inline struct hmac_ctx *hmac_ctx(struct crypto_hash *tfm)
39 return align_ptr(crypto_hash_ctx_aligned(tfm) +
40 crypto_hash_blocksize(tfm) * 2 +
41 crypto_hash_digestsize(tfm), sizeof(void *));
53 struct crypto_hash *tfm = ctx->child;
61 desc.tfm = tfm;
88 struct crypto_hash *parent = pdesc->tfm;
97 desc.tfm = ctx->child;
111 struct hmac_ctx *ctx = hmac_ctx(pdesc->tfm);
114 desc.tfm = ctx->child;
122 struct crypto_hash *parent = pdesc->tfm;
132 desc.tfm = ctx->child;
146 struct crypto_hash *parent = pdesc->tfm;
158 desc.tfm = ctx->child;
173 static int hmac_init_tfm(struct crypto_tfm *tfm)
176 struct crypto_instance *inst = (void *)tfm->__crt_alg;
178 struct hmac_ctx *ctx = hmac_ctx(__crypto_hash_cast(tfm));
188 static void hmac_exit_tfm(struct crypto_tfm *tfm)
190 struct hmac_ctx *ctx = hmac_ctx(__crypto_hash_cast(tfm));