We are working on SAP NetWeaver 6.40 and use IAIK in our J2EE application to implement the following functionalities:
2. Storing certificates from SAP into IAIK keystore In order to achieve the two requirements we bundle/package two IAIK jars inside our application namely:
a) iaik_cms.jar (Version 3.2)
b) and iaik_jce_full_signed.jar (version 3.13)
When we deploy the application on NetWeaver, the "Encryption/Decryption" is working correctly but while "Storing certificates from SAP into IAIK keystore" we get the following error:
"java.security.NoSuchProviderException: JCE cannot authenticate the provider"
We discussed this issue with IAIK and they suggested us to copy the iaik_jce_full_signed.jar file into the ext directory of our JRE.
With this we were able to resolve the above mentioned problem. But after this change we have started facing a new problem with Encryption and Decryption of data (java strings):
"javax.crypto.IllegalBlockSizeException: Input data length not a multiple of blocksize."
Our NetWeaver installation is using j2sdk1.4.2_08.
Please do reply as good answers shall be rewarded with points.