[xmlsec] [XMLEncryption] Illegal key size

Aleksey Sanin aleksey at aleksey.com
Thu Apr 5 22:06:29 PDT 2007


This is a wrong mailing list. You might want to ask this question
on apache security suite mailing list.

Aleksey


Dimuthu Leelarathne wrote:
> Hi all
> 
> I have unlimited JCE install in my machine. Normal XMLEncryption works
> fine. But when the following algorithm is used it throws an Exception.
> 
> http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p
> 
> The exception is 
> 
> Caused by: org.apache.xml.security.encryption.XMLEncryptionException:
> Illegal key size or default parameters
> Original Exception was java.security.InvalidKeyException: Illegal key
> size or default parameters
>         at
> org.apache.xml.security.encryption.XMLCipher.encryptData(Unknown Source)
>         at
> org.apache.xml.security.encryption.XMLCipher.encryptElementContent(Unknown Source)
>         at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
> Source)
> 
> So how do I come out of this problem?
> 
> Thank you,
> Dimuthu
> 
> 
> _______________________________________________
> xmlsec mailing list
> xmlsec at aleksey.com
> http://www.aleksey.com/mailman/listinfo/xmlsec



More information about the xmlsec mailing list