diff options
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]; |
