X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/aebbb9d05fb99e26e18c17e7e02de5bee291a6d0..de6a3945e1211f6edf2069e11f6fbe522d6776d5:/test/hash.cc?ds=sidebyside 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 #include +#include #include #include @@ -57,6 +58,12 @@ int main() "d174ab98d277d9f5a5611c2c9f419d9f"); Test("12345678901234567890123456789012345678901234567890123456789012345678901234567890", "57edf4a22be3c955ac49da2e2107b67a"); + + // SHA-256, From FIPS 180-2 + Test("abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", + "248d6a61d20638b8e5c026930c3e6039a33ce45964ff2167f6ecedd419db06c1"); + + return 0; }