diff options
author | beck <> | 2014-04-15 17:46:17 +0000 |
---|---|---|
committer | beck <> | 2014-04-15 17:46:17 +0000 |
commit | c9414ed70ec89926c1041a64ee4b2f3ef36c90f6 (patch) | |
tree | c53c25a15cd89988cef641fa18324c5c6db28fed /src/lib/libcrypto/sha/sha1test.c | |
parent | 0cfe49dc6db41fd2d4f960b618ed41b11ffffc6a (diff) | |
download | openbsd-c9414ed70ec89926c1041a64ee4b2f3ef36c90f6.tar.gz openbsd-c9414ed70ec89926c1041a64ee4b2f3ef36c90f6.tar.bz2 openbsd-c9414ed70ec89926c1041a64ee4b2f3ef36c90f6.zip |
Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternity
with the bearded ones...
some API's that nobody should be using will dissapear with this commit.
Diffstat (limited to 'src/lib/libcrypto/sha/sha1test.c')
-rw-r--r-- | src/lib/libcrypto/sha/sha1test.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/libcrypto/sha/sha1test.c b/src/lib/libcrypto/sha/sha1test.c index 6feb3964c7..ad9e3dc407 100644 --- a/src/lib/libcrypto/sha/sha1test.c +++ b/src/lib/libcrypto/sha/sha1test.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 | #undef SHA_0 /* FIPS 180 */ | 75 | #undef SHA_0 /* FIPS 180 */ |
80 | #define SHA_1 /* FIPS 180-1 */ | 76 | #define 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_sha1(), NULL); | 133 | EVP_DigestInit_ex(&c,EVP_sha1(), 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); |