public void installCBCCiphers ( ComponentFactory ciphers ) { if ( testJCECipher ( "3des-cbc" , TripleDesCbc . class ) ) { ciphers . add ( "3des-cbc" , TripleDesCbc . class ) ; } if ( testJCECipher ( "blowfish-cbc" , BlowfishCbc . class ) ) { ciphers . add ( "blowfish-cbc" , BlowfishCbc . class ) ; } if ( testJCECipher ( "aes128-cbc" , AES128Cbc . class ) ) { ciphers . add ( "aes128-cbc" , AES128Cbc . class ) ; } if ( testJCECipher ( "aes192-cbc" , AES192Cbc . class ) ) { ciphers . add ( "aes192-cbc" , AES192Cbc . class ) ; } if ( testJCECipher ( "aes256-cbc" , AES256Cbc . class ) ) { ciphers . add ( "aes256-cbc" , AES256Cbc . class ) ; } }
Install deprecated Counter - Block - Mode ciphers .