I am using OpenSAML to encrypt my SAML response.I changed my algorithm from AES to TRIPLEDES as below and now it started throwing me exception of
//Data encryption parameters - secret key
EncryptionParameters encParams = new EncryptionParameters();
encParams.setAlgorithm(EncryptionConstants.ALGO_ID_BLOCKCIPHER_TRIPLEDES);
java.security.InvalidParameterException: Wrong keysize: must be equal to 112 or 168
com.sun.crypto.provider.DESedeKeyGenerator.engineInit(DashoA13*..)
javax.crypto.KeyGenerator.init(DashoA13*..)
javax.crypto.KeyGenerator.init(DashoA13*..)
I know I need to set the key size to 168 but how do I set it in OpenSAML?