From: mdw Date: Fri, 19 Nov 1999 13:18:56 +0000 (+0000) Subject: Add extra test vector from FIPS 180-1. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/310f5b7654996d090fec328988354677333b26bc Add extra test vector from FIPS 180-1. --- diff --git a/tests/sha b/tests/sha index 15c94e0..44d9e8e 100644 --- a/tests/sha +++ b/tests/sha @@ -1,10 +1,12 @@ # Test vectors for the SHA-1 hash function # -# $Id: sha,v 1.1 1999/09/03 08:41:14 mdw Exp $ +# $Id: sha,v 1.2 1999/11/19 13:18:56 mdw Exp $ # --- Basic hash function --- # -# These were generated using the SSLeay implementation of SHA-1. +# Some of these are taken directly from the Secure Hash Standard +# (FIPS 180-1). Others were generated using the SSLeay implementation of +# SHA-1. sha { @@ -14,6 +16,8 @@ sha { "message digest" c12252ceda8be8994d5fa0290a47231c1d16aae3; "abcdefghijklmnopqrstuvwxyz" 32d10c7b8cf96570ca04ce37f2a19d84240d3a89; + "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" + 84983e441c3bd26ebaae4aa1f95129e5e54670f1; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" 761c457bf73b14d27e9e9265c46f4b4dda11f940; "12345678901234567890123456789012345678901234567890123456789012345678901234567890"