summaryrefslogtreecommitdiff
path: root/test/hash.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-06 18:04:17 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-06 18:04:17 +0200
commit9a4dfc82c563d6335bb37a928a8925efe329fd8d (patch)
tree18e11ad79f75a2df8d9b11520851966dad8aab83 /test/hash.cc
parent54668e4e591651be2d83b95ff4a9d96668db1e36 (diff)
parent02b7ddb1404fa3969bceb03a5f35107884027ba6 (diff)
* merged with the apt--mvo branch
Diffstat (limited to 'test/hash.cc')
-rw-r--r--test/hash.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/hash.cc b/test/hash.cc
index 5334c0331..cfdb4ea9d 100644
--- a/test/hash.cc
+++ b/test/hash.cc
@@ -1,5 +1,6 @@
#include <apt-pkg/md5.h>
#include <apt-pkg/sha1.h>
+#include <apt-pkg/sha256.h>
#include <apt-pkg/strutl.h>
#include <iostream>
@@ -57,6 +58,12 @@ int main()
"d174ab98d277d9f5a5611c2c9f419d9f");
Test<MD5Summation>("12345678901234567890123456789012345678901234567890123456789012345678901234567890",
"57edf4a22be3c955ac49da2e2107b67a");
+
+ // SHA-256, From FIPS 180-2
+ Test<SHA256Summation>("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
+ "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1");
+
+
return 0;
}