summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/mdc2
diff options
context:
space:
mode:
authorbeck <>2014-04-15 17:46:17 +0000
committerbeck <>2014-04-15 17:46:17 +0000
commit399901082925ad76fc2bd5cd8d351a590f3f2989 (patch)
treec53c25a15cd89988cef641fa18324c5c6db28fed /src/lib/libcrypto/mdc2
parent132a4cce42485cfd13bf12c1213cf1a63b5b1da2 (diff)
downloadopenbsd-399901082925ad76fc2bd5cd8d351a590f3f2989.tar.gz
openbsd-399901082925ad76fc2bd5cd8d351a590f3f2989.tar.bz2
openbsd-399901082925ad76fc2bd5cd8d351a590f3f2989.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/mdc2')
-rw-r--r--src/lib/libcrypto/mdc2/mdc2test.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/lib/libcrypto/mdc2/mdc2test.c b/src/lib/libcrypto/mdc2/mdc2test.c
index 017b31add2..cf8f65cf27 100644
--- a/src/lib/libcrypto/mdc2/mdc2test.c
+++ b/src/lib/libcrypto/mdc2/mdc2test.c
@@ -76,10 +76,6 @@ int main(int argc, char *argv[])
76#include <openssl/evp.h> 76#include <openssl/evp.h>
77#include <openssl/mdc2.h> 77#include <openssl/mdc2.h>
78 78
79#ifdef CHARSET_EBCDIC
80#include <openssl/ebcdic.h>
81#endif
82
83static unsigned char pad1[16]={ 79static unsigned char pad1[16]={
84 0x42,0xE5,0x0C,0xD2,0x24,0xBA,0xCE,0xBA, 80 0x42,0xE5,0x0C,0xD2,0x24,0xBA,0xCE,0xBA,
85 0x76,0x0B,0xDD,0x2B,0xD4,0x09,0x28,0x1A 81 0x76,0x0B,0xDD,0x2B,0xD4,0x09,0x28,0x1A
@@ -98,10 +94,6 @@ int main(int argc, char *argv[])
98 EVP_MD_CTX c; 94 EVP_MD_CTX c;
99 static char *text="Now is the time for all "; 95 static char *text="Now is the time for all ";
100 96
101#ifdef CHARSET_EBCDIC
102 ebcdic2ascii(text,text,strlen(text));
103#endif
104
105 EVP_MD_CTX_init(&c); 97 EVP_MD_CTX_init(&c);
106 EVP_DigestInit_ex(&c,EVP_mdc2(), NULL); 98 EVP_DigestInit_ex(&c,EVP_mdc2(), NULL);
107 EVP_DigestUpdate(&c,(unsigned char *)text,strlen(text)); 99 EVP_DigestUpdate(&c,(unsigned char *)text,strlen(text));