summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/sha1/sha1test.c
diff options
context:
space:
mode:
authordoug <>2015-09-13 21:09:56 +0000
committerdoug <>2015-09-13 21:09:56 +0000
commitf84194ca116d8e28c7eb7098c2c8d88f43bd56ac (patch)
tree982a180264ee66bd2bae30aea737ff5770b8509b /src/regress/lib/libcrypto/sha1/sha1test.c
parentaed7a5964f2147a9a2a73616e52bcefdcf925ecc (diff)
downloadopenbsd-f84194ca116d8e28c7eb7098c2c8d88f43bd56ac.tar.gz
openbsd-f84194ca116d8e28c7eb7098c2c8d88f43bd56ac.tar.bz2
openbsd-f84194ca116d8e28c7eb7098c2c8d88f43bd56ac.zip
Remove SHA-0 support.
SHA-0 was withdrawn shortly after publication 20 years ago and replaced with SHA-1. This will require a major crank. ok bcook@, jsing@
Diffstat (limited to 'src/regress/lib/libcrypto/sha1/sha1test.c')
-rw-r--r--src/regress/lib/libcrypto/sha1/sha1test.c13
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
69static char *test[]={ 66static char *test[]={
70 "abc", 67 "abc",
71 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", 68 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
72 NULL, 69 NULL,
73 }; 70 };
74 71
75#ifdef SHA_0
76static char *ret[]={
77 "0164b8a914cd2a5e74c4f7ff082c4d97f1edf880",
78 "d2516ee1acfa5baf33dfc1c471e438449ef134c8",
79 };
80static char *bigret=
81 "3232affa48628a26653b5aaa44541fd90d690603";
82#endif
83#ifdef SHA_1
84static char *ret[]={ 72static char *ret[]={
85 "a9993e364706816aba3e25717850c26c9cd0d89d", 73 "a9993e364706816aba3e25717850c26c9cd0d89d",
86 "84983e441c3bd26ebaae4aa1f95129e5e54670f1", 74 "84983e441c3bd26ebaae4aa1f95129e5e54670f1",
87 }; 75 };
88static char *bigret= 76static char *bigret=
89 "34aa973cd4c4daa4f61eeb2bdbad27316534016f"; 77 "34aa973cd4c4daa4f61eeb2bdbad27316534016f";
90#endif
91 78
92static char *pt(unsigned char *md); 79static char *pt(unsigned char *md);
93int main(int argc, char *argv[]) 80int main(int argc, char *argv[])