diff options
Diffstat (limited to 'cipher/sha256.c')
-rw-r--r-- | cipher/sha256.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cipher/sha256.c b/cipher/sha256.c index 601e9c0b..4efaec6f 100644 --- a/cipher/sha256.c +++ b/cipher/sha256.c @@ -92,11 +92,13 @@ transform (void *c, const unsigned char *data, size_t nblks); static void -sha256_init (void *context) +sha256_init (void *context, unsigned int flags) { SHA256_CONTEXT *hd = context; unsigned int features = _gcry_get_hw_features (); + (void)flags; + hd->h0 = 0x6a09e667; hd->h1 = 0xbb67ae85; hd->h2 = 0x3c6ef372; @@ -128,11 +130,13 @@ sha256_init (void *context) static void -sha224_init (void *context) +sha224_init (void *context, unsigned int flags) { SHA256_CONTEXT *hd = context; unsigned int features = _gcry_get_hw_features (); + (void)flags; + hd->h0 = 0xc1059ed8; hd->h1 = 0x367cd507; hd->h2 = 0x3070dd17; |