···507507int crypto_ahash_export(struct ahash_request *req, void *out);508508509509/**510510- * crypto_ahash_export_core() - extract core state for message digest511511- * @req: reference to the ahash_request handle whose state is exported512512- * @out: output buffer of sufficient size that can hold the hash state513513- *514514- * Export the hash state without the partial block buffer.515515- *516516- * Context: Softirq or process context.517517- * Return: 0 if the export creation was successful; < 0 if an error occurred518518- */519519-int crypto_ahash_export_core(struct ahash_request *req, void *out);520520-521521-/**522510 * crypto_ahash_import() - import message digest state523511 * @req: reference to ahash_request handle the state is imported into524512 * @in: buffer holding the state···518530 * Return: 0 if the import was successful; < 0 if an error occurred519531 */520532int crypto_ahash_import(struct ahash_request *req, const void *in);521521-522522-/**523523- * crypto_ahash_import_core() - import core state524524- * @req: reference to ahash_request handle the state is imported into525525- * @in: buffer holding the state526526- *527527- * Import the hash state without the partial block buffer.528528- *529529- * Context: Softirq or process context.530530- * Return: 0 if the import was successful; < 0 if an error occurred531531- */532532-int crypto_ahash_import_core(struct ahash_request *req, const void *in);533533534534/**535535 * crypto_ahash_init() - (re)initialize message digest handle···910934int crypto_shash_export(struct shash_desc *desc, void *out);911935912936/**913913- * crypto_shash_export_core() - extract core state for message digest914914- * @desc: reference to the operational state handle whose state is exported915915- * @out: output buffer of sufficient size that can hold the hash state916916- *917917- * Export the hash state without the partial block buffer.918918- *919919- * Context: Softirq or process context.920920- * Return: 0 if the export creation was successful; < 0 if an error occurred921921- */922922-int crypto_shash_export_core(struct shash_desc *desc, void *out);923923-924924-/**925937 * crypto_shash_import() - import operational state926938 * @desc: reference to the operational state handle the state imported into927939 * @in: buffer holding the state···922958 * Return: 0 if the import was successful; < 0 if an error occurred923959 */924960int crypto_shash_import(struct shash_desc *desc, const void *in);925925-926926-/**927927- * crypto_shash_import_core() - import core state928928- * @desc: reference to the operational state handle the state imported into929929- * @in: buffer holding the state930930- *931931- * Import the hash state without the partial block buffer.932932- *933933- * Context: Softirq or process context.934934- * Return: 0 if the import was successful; < 0 if an error occurred935935- */936936-int crypto_shash_import_core(struct shash_desc *desc, const void *in);937961938962/**939963 * crypto_shash_init() - (re)initialize message digest
+48
include/crypto/internal/hash.h
···305305#define HASH_REQUEST_ZERO(name) \306306 memzero_explicit(__##name##_req, sizeof(__##name##_req))307307308308+/**309309+ * crypto_ahash_export_core() - extract core state for message digest310310+ * @req: reference to the ahash_request handle whose state is exported311311+ * @out: output buffer of sufficient size that can hold the hash state312312+ *313313+ * Export the hash state without the partial block buffer.314314+ *315315+ * Context: Softirq or process context.316316+ * Return: 0 if the export creation was successful; < 0 if an error occurred317317+ */318318+int crypto_ahash_export_core(struct ahash_request *req, void *out);319319+320320+/**321321+ * crypto_ahash_import_core() - import core state322322+ * @req: reference to ahash_request handle the state is imported into323323+ * @in: buffer holding the state324324+ *325325+ * Import the hash state without the partial block buffer.326326+ *327327+ * Context: Softirq or process context.328328+ * Return: 0 if the import was successful; < 0 if an error occurred329329+ */330330+int crypto_ahash_import_core(struct ahash_request *req, const void *in);331331+332332+/**333333+ * crypto_shash_export_core() - extract core state for message digest334334+ * @desc: reference to the operational state handle whose state is exported335335+ * @out: output buffer of sufficient size that can hold the hash state336336+ *337337+ * Export the hash state without the partial block buffer.338338+ *339339+ * Context: Softirq or process context.340340+ * Return: 0 if the export creation was successful; < 0 if an error occurred341341+ */342342+int crypto_shash_export_core(struct shash_desc *desc, void *out);343343+344344+/**345345+ * crypto_shash_import_core() - import core state346346+ * @desc: reference to the operational state handle the state imported into347347+ * @in: buffer holding the state348348+ *349349+ * Import the hash state without the partial block buffer.350350+ *351351+ * Context: Softirq or process context.352352+ * Return: 0 if the import was successful; < 0 if an error occurred353353+ */354354+int crypto_shash_import_core(struct shash_desc *desc, const void *in);355355+308356#endif /* _CRYPTO_INTERNAL_HASH_H */309357