testenc.bat 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. @echo off
  2. echo start testenc
  3. path=..\ms;%path%
  4. set ssleay=%1%
  5. set input=..\ms\testenc.bat
  6. set tmp1=..\ms\cipher.out
  7. set out1=..\ms\clear.out
  8. set cmp=perl ..\ms\cmp.pl
  9. cd
  10. call tenc.bat enc
  11. if errorlevel 1 goto err
  12. call tenc.bat rc4
  13. if errorlevel 1 goto err
  14. call tenc.bat des-cfb
  15. if errorlevel 1 goto err
  16. call tenc.bat des-ede-cfb
  17. if errorlevel 1 goto err
  18. call tenc.bat des-ede3-cfb
  19. if errorlevel 1 goto err
  20. call tenc.bat des-ofb
  21. if errorlevel 1 goto err
  22. call tenc.bat des-ede-ofb
  23. if errorlevel 1 goto err
  24. call tenc.bat des-ede3-ofb
  25. if errorlevel 1 goto err
  26. call tenc.bat des-ecb
  27. if errorlevel 1 goto err
  28. call tenc.bat des-ede
  29. if errorlevel 1 goto err
  30. call tenc.bat des-ede3
  31. if errorlevel 1 goto err
  32. call tenc.bat des-cbc
  33. if errorlevel 1 goto err
  34. call tenc.bat des-ede-cbc
  35. if errorlevel 1 goto err
  36. call tenc.bat des-ede3-cbc
  37. if errorlevel 1 goto err
  38. call tenc.bat idea-ecb
  39. if errorlevel 1 goto err
  40. call tenc.bat idea-cfb
  41. if errorlevel 1 goto err
  42. call tenc.bat idea-ofb
  43. if errorlevel 1 goto err
  44. call tenc.bat idea-cbc
  45. if errorlevel 1 goto err
  46. call tenc.bat rc2-ecb
  47. if errorlevel 1 goto err
  48. call tenc.bat rc2-cfb
  49. if errorlevel 1 goto err
  50. call tenc.bat rc2-ofb
  51. if errorlevel 1 goto err
  52. call tenc.bat rc2-cbc
  53. if errorlevel 1 goto err
  54. call tenc.bat bf-ecb
  55. if errorlevel 1 goto err
  56. call tenc.bat bf-cfb
  57. if errorlevel 1 goto err
  58. call tenc.bat bf-ofb
  59. if errorlevel 1 goto err
  60. call tenc.bat bf-cbc
  61. if errorlevel 1 goto err
  62. echo OK
  63. del %out1%
  64. del %tmp1%
  65. :err