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/bf/bftest.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/bf/bftest.c')
-rw-r--r-- | src/lib/libcrypto/bf/bftest.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/lib/libcrypto/bf/bftest.c b/src/lib/libcrypto/bf/bftest.c index 97e6634d37..20caf0f3f8 100644 --- a/src/lib/libcrypto/bf/bftest.c +++ b/src/lib/libcrypto/bf/bftest.c | |||
@@ -75,10 +75,6 @@ int main(int argc, char *argv[]) | |||
75 | #else | 75 | #else |
76 | #include <openssl/blowfish.h> | 76 | #include <openssl/blowfish.h> |
77 | 77 | ||
78 | #ifdef CHARSET_EBCDIC | ||
79 | #include <openssl/ebcdic.h> | ||
80 | #endif | ||
81 | |||
82 | static char *bf_key[2]={ | 78 | static char *bf_key[2]={ |
83 | "abcdefghijklmnopqrstuvwxyz", | 79 | "abcdefghijklmnopqrstuvwxyz", |
84 | "Who is John Galt?" | 80 | "Who is John Galt?" |
@@ -361,16 +357,9 @@ static int test(void) | |||
361 | unsigned char out[8]; | 357 | unsigned char out[8]; |
362 | BF_LONG len; | 358 | BF_LONG len; |
363 | 359 | ||
364 | #ifdef CHARSET_EBCDIC | ||
365 | ebcdic2ascii(cbc_data, cbc_data, strlen(cbc_data)); | ||
366 | #endif | ||
367 | |||
368 | printf("testing blowfish in raw ecb mode\n"); | 360 | printf("testing blowfish in raw ecb mode\n"); |
369 | for (n=0; n<2; n++) | 361 | for (n=0; n<2; n++) |
370 | { | 362 | { |
371 | #ifdef CHARSET_EBCDIC | ||
372 | ebcdic2ascii(bf_key[n], bf_key[n], strlen(bf_key[n])); | ||
373 | #endif | ||
374 | BF_set_key(&key,strlen(bf_key[n]),(unsigned char *)bf_key[n]); | 363 | BF_set_key(&key,strlen(bf_key[n]),(unsigned char *)bf_key[n]); |
375 | 364 | ||
376 | data[0]=bf_plain[n][0]; | 365 | data[0]=bf_plain[n][0]; |