]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - include/crypto/internal/hash.h
crypto: hash - Add real ahash walk interface
[mirror_ubuntu-jammy-kernel.git] / include / crypto / internal / hash.h
index 821eae8cbd8cf131bdbcc41dd46de828e700269a..9b6f32a6cad1a0ca2479fef6204656b94417798e 100644 (file)
@@ -55,15 +55,28 @@ extern const struct crypto_type crypto_ahash_type;
 int crypto_hash_walk_done(struct crypto_hash_walk *walk, int err);
 int crypto_hash_walk_first(struct ahash_request *req,
                           struct crypto_hash_walk *walk);
+int crypto_ahash_walk_first(struct ahash_request *req,
+                          struct crypto_hash_walk *walk);
 int crypto_hash_walk_first_compat(struct hash_desc *hdesc,
                                  struct crypto_hash_walk *walk,
                                  struct scatterlist *sg, unsigned int len);
 
+static inline int crypto_ahash_walk_done(struct crypto_hash_walk *walk,
+                                        int err)
+{
+       return crypto_hash_walk_done(walk, err);
+}
+
 static inline int crypto_hash_walk_last(struct crypto_hash_walk *walk)
 {
        return !(walk->entrylen | walk->total);
 }
 
+static inline int crypto_ahash_walk_last(struct crypto_hash_walk *walk)
+{
+       return crypto_hash_walk_last(walk);
+}
+
 int crypto_register_ahash(struct ahash_alg *alg);
 int crypto_unregister_ahash(struct ahash_alg *alg);
 int ahash_register_instance(struct crypto_template *tmpl,