]> wimlib.net Git - wimlib/blobdiff - src/sha1.h
NTFS capture (IN PROGRESS)
[wimlib] / src / sha1.h
index c44b9f40f76ce46cd78d7c12eec3c86a17d28498..a5d695d65a633d5e01428d56659b3067ea1e0f89 100644 (file)
@@ -25,6 +25,11 @@ static inline bool hashes_equal(const u8 h1[SHA1_HASH_SIZE],
 {
        return memcmp(h1, h2, SHA1_HASH_SIZE) == 0;
 }
 {
        return memcmp(h1, h2, SHA1_HASH_SIZE) == 0;
 }
+static inline int hashes_cmp(const u8 h1[SHA1_HASH_SIZE],
+                            const u8 h2[SHA1_HASH_SIZE])
+{
+       return memcmp(h1, h2, SHA1_HASH_SIZE);
+}
 
 /* Prints a hash code field. */
 static inline void print_hash(const u8 hash[SHA1_HASH_SIZE])
 
 /* Prints a hash code field. */
 static inline void print_hash(const u8 hash[SHA1_HASH_SIZE])