From 399901082925ad76fc2bd5cd8d351a590f3f2989 Mon Sep 17 00:00:00 2001 From: beck <> Date: Tue, 15 Apr 2014 17:46:17 +0000 Subject: 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. --- src/lib/libcrypto/md4/md4_one.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/lib/libcrypto/md4') diff --git a/src/lib/libcrypto/md4/md4_one.c b/src/lib/libcrypto/md4/md4_one.c index bb64362638..ed6ce33650 100644 --- a/src/lib/libcrypto/md4/md4_one.c +++ b/src/lib/libcrypto/md4/md4_one.c @@ -61,10 +61,6 @@ #include #include -#ifdef CHARSET_EBCDIC -#include -#endif - unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md) { MD4_CTX c; @@ -73,23 +69,7 @@ unsigned char *MD4(const unsigned char *d, size_t n, unsigned char *md) if (md == NULL) md=m; if (!MD4_Init(&c)) return NULL; -#ifndef CHARSET_EBCDIC MD4_Update(&c,d,n); -#else - { - char temp[1024]; - unsigned long chunk; - - while (n > 0) - { - chunk = (n > sizeof(temp)) ? sizeof(temp) : n; - ebcdic2ascii(temp, d, chunk); - MD4_Update(&c,temp,chunk); - n -= chunk; - d += chunk; - } - } -#endif MD4_Final(md,&c); OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */ return(md); -- cgit v1.2.3-55-g6feb