]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Move declaration of sha256_compress in header file, for consistency.
authorNiels Möller <nisse@lysator.liu.se>
Thu, 9 Jun 2022 16:33:55 +0000 (18:33 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Thu, 9 Jun 2022 16:41:27 +0000 (18:41 +0200)
sha2.h

diff --git a/sha2.h b/sha2.h
index 264ab6ba77b109d057b98dd55b1bf208fe380580..3a7be71f2c7216a509be25db60070e13e1deca85 100644 (file)
--- a/sha2.h
+++ b/sha2.h
@@ -93,6 +93,8 @@ sha256_digest(struct sha256_ctx *ctx,
              size_t length,
              uint8_t *digest);
 
+void
+sha256_compress(uint32_t *state, const uint8_t *input);
 
 /* SHA224, a truncated SHA256 with different initial state. */
 
@@ -191,9 +193,6 @@ sha512_256_digest(struct sha512_256_ctx *ctx,
                   size_t length,
                   uint8_t *digest);
 
-void
-sha256_compress(uint32_t *state, const uint8_t *input);
-
 #ifdef __cplusplus
 }
 #endif