diff options
Diffstat (limited to 'src/lib/libcrypto/sha/shatest.c')
-rw-r--r-- | src/lib/libcrypto/sha/shatest.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/libcrypto/sha/shatest.c b/src/lib/libcrypto/sha/shatest.c index 27614646d1..6c93c39590 100644 --- a/src/lib/libcrypto/sha/shatest.c +++ b/src/lib/libcrypto/sha/shatest.c | |||
@@ -72,10 +72,6 @@ int main(int argc, char *argv[]) | |||
72 | #include <openssl/evp.h> | 72 | #include <openssl/evp.h> |
73 | #include <openssl/sha.h> | 73 | #include <openssl/sha.h> |
74 | 74 | ||
75 | #ifdef CHARSET_EBCDIC | ||
76 | #include <openssl/ebcdic.h> | ||
77 | #endif | ||
78 | |||
79 | #define SHA_0 /* FIPS 180 */ | 75 | #define SHA_0 /* FIPS 180 */ |
80 | #undef SHA_1 /* FIPS 180-1 */ | 76 | #undef SHA_1 /* FIPS 180-1 */ |
81 | 77 | ||
@@ -112,11 +108,6 @@ int main(int argc, char *argv[]) | |||
112 | EVP_MD_CTX c; | 108 | EVP_MD_CTX c; |
113 | unsigned char md[SHA_DIGEST_LENGTH]; | 109 | unsigned char md[SHA_DIGEST_LENGTH]; |
114 | 110 | ||
115 | #ifdef CHARSET_EBCDIC | ||
116 | ebcdic2ascii(test[0], test[0], strlen(test[0])); | ||
117 | ebcdic2ascii(test[1], test[1], strlen(test[1])); | ||
118 | #endif | ||
119 | |||
120 | EVP_MD_CTX_init(&c); | 111 | EVP_MD_CTX_init(&c); |
121 | P=test; | 112 | P=test; |
122 | R=ret; | 113 | R=ret; |
@@ -139,9 +130,6 @@ int main(int argc, char *argv[]) | |||
139 | } | 130 | } |
140 | 131 | ||
141 | memset(buf,'a',1000); | 132 | memset(buf,'a',1000); |
142 | #ifdef CHARSET_EBCDIC | ||
143 | ebcdic2ascii(buf, buf, 1000); | ||
144 | #endif /*CHARSET_EBCDIC*/ | ||
145 | EVP_DigestInit_ex(&c,EVP_sha(), NULL); | 133 | EVP_DigestInit_ex(&c,EVP_sha(), NULL); |
146 | for (i=0; i<1000; i++) | 134 | for (i=0; i<1000; i++) |
147 | EVP_DigestUpdate(&c,buf,1000); | 135 | EVP_DigestUpdate(&c,buf,1000); |