diff options
Diffstat (limited to 'src/Common/Dlgcode.c')
-rw-r--r-- | src/Common/Dlgcode.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 071ed8e2..b40a41cd 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c | |||
@@ -5366,15 +5366,6 @@ CipherTestDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) | |||
5366 | } | 5366 | } |
5367 | else | 5367 | else |
5368 | { | 5368 | { |
5369 | if (idTestCipher == BLOWFISH) | ||
5370 | { | ||
5371 | /* Deprecated/legacy */ | ||
5372 | |||
5373 | /* Convert to little-endian, this is needed here and not in | ||
5374 | above auto-tests because BF_ecb_encrypt above correctly converts | ||
5375 | from big to little endian, and EncipherBlock does not! */ | ||
5376 | LongReverse((unsigned int *) tmp, pt); | ||
5377 | } | ||
5378 | 5369 | ||
5379 | CipherInit2(idTestCipher, key, ks_tmp, ks); | 5370 | CipherInit2(idTestCipher, key, ks_tmp, ks); |
5380 | 5371 | ||
@@ -5387,13 +5378,6 @@ CipherTestDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) | |||
5387 | DecipherBlock(idTestCipher, tmp, ks_tmp); | 5378 | DecipherBlock(idTestCipher, tmp, ks_tmp); |
5388 | } | 5379 | } |
5389 | 5380 | ||
5390 | if (idTestCipher == BLOWFISH) | ||
5391 | { | ||
5392 | /* Deprecated/legacy */ | ||
5393 | |||
5394 | /* Convert back to big-endian */ | ||
5395 | LongReverse((unsigned int *) tmp, pt); | ||
5396 | } | ||
5397 | } | 5381 | } |
5398 | *szTmp = 0; | 5382 | *szTmp = 0; |
5399 | 5383 | ||
@@ -5464,43 +5448,6 @@ ResetCipherTest(HWND hwndDlg, int idTestCipher) | |||
5464 | 5448 | ||
5465 | SetWindowText(GetDlgItem(hwndDlg, IDC_SECONDARY_KEY), "0000000000000000000000000000000000000000000000000000000000000000"); | 5449 | SetWindowText(GetDlgItem(hwndDlg, IDC_SECONDARY_KEY), "0000000000000000000000000000000000000000000000000000000000000000"); |
5466 | SetWindowText(GetDlgItem(hwndDlg, IDC_TEST_DATA_UNIT_NUMBER), "0"); | 5450 | SetWindowText(GetDlgItem(hwndDlg, IDC_TEST_DATA_UNIT_NUMBER), "0"); |
5467 | |||
5468 | if (idTestCipher == BLOWFISH) | ||
5469 | { | ||
5470 | /* Deprecated/legacy */ | ||
5471 | |||
5472 | ndx = SendMessage (GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_ADDSTRING, 0,(LPARAM) "448"); | ||
5473 | SendMessage(GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_SETITEMDATA, ndx,(LPARAM) 56); | ||
5474 | ndx = SendMessage (GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_ADDSTRING, 0,(LPARAM) "256"); | ||
5475 | SendMessage(GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_SETITEMDATA, ndx,(LPARAM) 32); | ||
5476 | ndx = SendMessage (GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_ADDSTRING, 0,(LPARAM) "128"); | ||
5477 | SendMessage(GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_SETITEMDATA, ndx,(LPARAM) 16); | ||
5478 | ndx = SendMessage (GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_ADDSTRING, 0,(LPARAM) "64"); | ||
5479 | SendMessage(GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_SETITEMDATA, ndx,(LPARAM) 8); | ||
5480 | SendMessage(GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_SETCURSEL, 0,0); | ||
5481 | SetWindowText(GetDlgItem(hwndDlg, IDC_KEY), "0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); | ||
5482 | } | ||
5483 | |||
5484 | |||
5485 | if (idTestCipher == CAST) | ||
5486 | { | ||
5487 | /* Deprecated/legacy */ | ||
5488 | |||
5489 | ndx = SendMessage (GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_ADDSTRING, 0,(LPARAM) "128"); | ||
5490 | SendMessage(GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_SETITEMDATA, ndx,(LPARAM) 16); | ||
5491 | SendMessage(GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_SETCURSEL, ndx,0); | ||
5492 | SetWindowText(GetDlgItem(hwndDlg, IDC_KEY), "00000000000000000000000000000000"); | ||
5493 | } | ||
5494 | |||
5495 | if (idTestCipher == TRIPLEDES) | ||
5496 | { | ||
5497 | /* Deprecated/legacy */ | ||
5498 | |||
5499 | ndx = SendMessage (GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_ADDSTRING, 0,(LPARAM) "168"); | ||
5500 | SendMessage(GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_SETITEMDATA, ndx,(LPARAM) 24); | ||
5501 | SendMessage(GetDlgItem(hwndDlg, IDC_KEY_SIZE), CB_SETCURSEL, ndx,0); | ||
5502 | SetWindowText(GetDlgItem(hwndDlg, IDC_KEY), "000000000000000000000000000000000000000000000000"); | ||
5503 | } | ||
5504 | 5451 | ||
5505 | SetWindowText(GetDlgItem(hwndDlg, IDC_PLAINTEXT), "0000000000000000"); | 5452 | SetWindowText(GetDlgItem(hwndDlg, IDC_PLAINTEXT), "0000000000000000"); |
5506 | SetWindowText(GetDlgItem(hwndDlg, IDC_CIPHERTEXT), "0000000000000000"); | 5453 | SetWindowText(GetDlgItem(hwndDlg, IDC_CIPHERTEXT), "0000000000000000"); |