[git] GCRYPT - branch, master, updated. libgcrypt-1.5.0-451-g0d3bd23

by Werner Koch cvs at cvs.gnupg.org
Mon Dec 16 13:03:46 CET 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  0d3bd23d7f730b9bbc81fc8da8d99f4853c36020 (commit)
      from  a6b9304a889397ac98e1c2c4ac3e178669d94492 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0d3bd23d7f730b9bbc81fc8da8d99f4853c36020
Author: Werner Koch <wk at gnupg.org>
Date:   Mon Dec 16 12:43:50 2013 +0100

    tests: Add SHA-512 to the long hash test.
    
    * tests/hashtest.c (testvectors): Add vectors for 256GiB SHA-512.
    * tests/hashtest-256g.in (algos): Add test for SHA-512.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/tests/genhashdata.c b/tests/genhashdata.c
index 8777f9c..e16c49b 100644
--- a/tests/genhashdata.c
+++ b/tests/genhashdata.c
@@ -40,6 +40,19 @@ $ for i in -64 -1 0 1 64; do ./genhashdata --gigs 256 --bytes $i|sha256sum;done
 5a2e21b1e79cd866acf53a2a18ca76bd4e02c4b01bf4627354171824c812d95f  -
 34444808af8e9d995e67f9e155ed94bf55f195a51dc1d8a989e6bcf95511c8a2  -
 
+
+$ for i in -64 -1 0 1 64; do ./genhashdata --gigs 256 --bytes $i|sha512sum;done
+e01bf8140874bf240e8426cb2bcbc377cbed2e6037334116637149e1cd8cd462 \
+96828b71f32b9f002771d4cb51172ce578b73b7939221e4df655ecd08601e655  -
+4917ff94514b1757705c289fdc3e7d6ffcce5771b20ae237ebc03d2ec9eb435f \
+b7ce9f0e27272be8cced77a5edae1a01a0ad62b0a44169d88bbee45474a17734  -
+1e28e8b3c79f2f47da11f3c0b7da4e7981e7d932db6d17d528a31e191922edda \
+8fc4bb2df10ea876232db5a1c606bc41886e8b2c570a3e721221f60c8c7dc4ab  -
+027d3324dd1cf127770ceb53681f4c70937c9bca4e3acd5fd76cb266c7d4527d \
+58140290a1822e8d60c4d3ae9725fb923183230d6dfd2d7d73c0d74a4757f34a  -
+49920704ea9d6ee19f0742d6c868110fa3eda8ac09f026e9ef22cc731af53020 \
+de40eedef66cb1afd94c61e285fa9327e01336e804903740a9145ab1f065c2d5  -
+
 */
 
 #include <stdarg.h>
diff --git a/tests/hashtest-256g.in b/tests/hashtest-256g.in
index 02ab3f6..e897c54 100755
--- a/tests/hashtest-256g.in
+++ b/tests/hashtest-256g.in
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-algos="SHA1 SHA256"
+algos="SHA1 SHA256 SHA512"
 
 test "@RUN_LARGE_DATA_TESTS@" = yes || exit 77
 echo "      now running 256 GiB tests for $algos - this takes looong"
diff --git a/tests/hashtest.c b/tests/hashtest.c
index 15310d0..6fbce0c 100644
--- a/tests/hashtest.c
+++ b/tests/hashtest.c
@@ -63,6 +63,7 @@ static struct {
   { GCRY_MD_SHA1, 256,  -0, "71b923afde1c8c040884c723a2e3335b333e64c6" },
   { GCRY_MD_SHA1, 256,   1, "2d99f9b5b86e9c9c937104f4242bd6b8bc0927ef" },
   { GCRY_MD_SHA1, 256,  64, "a60dabe8d749f798b7ec3a684cc3eab487451482" },
+
   { GCRY_MD_SHA224, 256, -64,
     "b5672b54d2480a5688a2dc727a1ad4db7a81ef31ce8999e0bbaeffdc" },
   { GCRY_MD_SHA224, 256,  -1,
@@ -73,6 +74,7 @@ static struct {
     "e578d5d523320876565bbbc892511a485427caee6dd754d57e3e58c2" },
   { GCRY_MD_SHA224, 256,  64,
     "ff0464df248cd298b63765bc4f87f21e25c93c657fdf3656d3c878e5" },
+
   { GCRY_MD_SHA256, 256, -64,
     "87a9828d3de78d55d252341db2a622908c4e0ceaee9961ecf9768700fc799ec8" },
   { GCRY_MD_SHA256, 256,  -1,
@@ -83,10 +85,25 @@ static struct {
     "5a2e21b1e79cd866acf53a2a18ca76bd4e02c4b01bf4627354171824c812d95f" },
   { GCRY_MD_SHA256, 256,  64,
     "34444808af8e9d995e67f9e155ed94bf55f195a51dc1d8a989e6bcf95511c8a2" },
-  { 0 }
-};
 
+  { GCRY_MD_SHA512, 256, -64,
+    "e01bf8140874bf240e8426cb2bcbc377cbed2e6037334116637149e1cd8cd462"
+    "96828b71f32b9f002771d4cb51172ce578b73b7939221e4df655ecd08601e655" },
+  { GCRY_MD_SHA512, 256,  -1,
+    "4917ff94514b1757705c289fdc3e7d6ffcce5771b20ae237ebc03d2ec9eb435f"
+    "b7ce9f0e27272be8cced77a5edae1a01a0ad62b0a44169d88bbee45474a17734" },
+  { GCRY_MD_SHA512, 256,   0,
+    "1e28e8b3c79f2f47da11f3c0b7da4e7981e7d932db6d17d528a31e191922edda"
+    "8fc4bb2df10ea876232db5a1c606bc41886e8b2c570a3e721221f60c8c7dc4ab" },
+  { GCRY_MD_SHA512, 256,   1,
+    "027d3324dd1cf127770ceb53681f4c70937c9bca4e3acd5fd76cb266c7d4527d"
+    "58140290a1822e8d60c4d3ae9725fb923183230d6dfd2d7d73c0d74a4757f34a" },
+  { GCRY_MD_SHA512, 256,  64,
+    "49920704ea9d6ee19f0742d6c868110fa3eda8ac09f026e9ef22cc731af53020"
+    "de40eedef66cb1afd94c61e285fa9327e01336e804903740a9145ab1f065c2d5" },
 
+  { 0 }
+};
 
 
 

-----------------------------------------------------------------------

Summary of changes:
 tests/genhashdata.c    |   13 +++++++++++++
 tests/hashtest-256g.in |    2 +-
 tests/hashtest.c       |   21 +++++++++++++++++++--
 3 files changed, 33 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org


_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits




More information about the Gcrypt-devel mailing list