···123123 * data so the transformation can continue from this point onward. No124124 * data processing happens at this point. Driver must not use125125 * req->result.126126+ * @init_tfm: Initialize the cryptographic transformation object.127127+ * This function is called only once at the instantiation128128+ * time, right after the transformation context was129129+ * allocated. In case the cryptographic hardware has130130+ * some special requirements which need to be handled131131+ * by software, this function shall check for the precise132132+ * requirement of the transformation and put any software133133+ * fallbacks in place.134134+ * @exit_tfm: Deinitialize the cryptographic transformation object.135135+ * This is a counterpart to @init_tfm, used to remove136136+ * various changes set in @init_tfm.126137 * @halg: see struct hash_alg_common127138 */128139struct ahash_alg {···146135 int (*import)(struct ahash_request *req, const void *in);147136 int (*setkey)(struct crypto_ahash *tfm, const u8 *key,148137 unsigned int keylen);138138+ int (*init_tfm)(struct crypto_ahash *tfm);139139+ void (*exit_tfm)(struct crypto_ahash *tfm);149140150141 struct hash_alg_common halg;151142};