(String cipher)
| 2480 | } |
| 2481 | |
| 2482 | static boolean checkCipher(String cipher){ |
| 2483 | try{ |
| 2484 | Class c=Class.forName(cipher); |
| 2485 | Cipher _c=(Cipher)(c.newInstance()); |
| 2486 | _c.init(Cipher.ENCRYPT_MODE, |
| 2487 | new byte[_c.getBlockSize()], |
| 2488 | new byte[_c.getIVSize()]); |
| 2489 | return true; |
| 2490 | } |
| 2491 | catch(Exception e){ |
| 2492 | return false; |
| 2493 | } |
| 2494 | } |
| 2495 | |
| 2496 | private String[] checkKexes(String kexes){ |
| 2497 | if(kexes==null || kexes.length()==0) |
no test coverage detected