diff options
Diffstat (limited to 'src/regress/lib/libcrypto/sha1/sha1test.c')
| -rw-r--r-- | src/regress/lib/libcrypto/sha1/sha1test.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/regress/lib/libcrypto/sha1/sha1test.c b/src/regress/lib/libcrypto/sha1/sha1test.c index 4a18a31459..b7251b31dc 100644 --- a/src/regress/lib/libcrypto/sha1/sha1test.c +++ b/src/regress/lib/libcrypto/sha1/sha1test.c | |||
| @@ -63,31 +63,18 @@ | |||
| 63 | #include <openssl/evp.h> | 63 | #include <openssl/evp.h> |
| 64 | #include <openssl/sha.h> | 64 | #include <openssl/sha.h> |
| 65 | 65 | ||
| 66 | #undef SHA_0 /* FIPS 180 */ | ||
| 67 | #define SHA_1 /* FIPS 180-1 */ | ||
| 68 | |||
| 69 | static char *test[]={ | 66 | static char *test[]={ |
| 70 | "abc", | 67 | "abc", |
| 71 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", | 68 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 72 | NULL, | 69 | NULL, |
| 73 | }; | 70 | }; |
| 74 | 71 | ||
| 75 | #ifdef SHA_0 | ||
| 76 | static char *ret[]={ | ||
| 77 | "0164b8a914cd2a5e74c4f7ff082c4d97f1edf880", | ||
| 78 | "d2516ee1acfa5baf33dfc1c471e438449ef134c8", | ||
| 79 | }; | ||
| 80 | static char *bigret= | ||
| 81 | "3232affa48628a26653b5aaa44541fd90d690603"; | ||
| 82 | #endif | ||
| 83 | #ifdef SHA_1 | ||
| 84 | static char *ret[]={ | 72 | static char *ret[]={ |
| 85 | "a9993e364706816aba3e25717850c26c9cd0d89d", | 73 | "a9993e364706816aba3e25717850c26c9cd0d89d", |
| 86 | "84983e441c3bd26ebaae4aa1f95129e5e54670f1", | 74 | "84983e441c3bd26ebaae4aa1f95129e5e54670f1", |
| 87 | }; | 75 | }; |
| 88 | static char *bigret= | 76 | static char *bigret= |
| 89 | "34aa973cd4c4daa4f61eeb2bdbad27316534016f"; | 77 | "34aa973cd4c4daa4f61eeb2bdbad27316534016f"; |
| 90 | #endif | ||
| 91 | 78 | ||
| 92 | static char *pt(unsigned char *md); | 79 | static char *pt(unsigned char *md); |
| 93 | int main(int argc, char *argv[]) | 80 | int main(int argc, char *argv[]) |
