- edited description
JUnit Tests failed: Illegal key size
I checked out the snapshot version and tried to run it but getting tests failed, always with the same exception:
Tests in error:
testAuthenticatedEncryption512(com.nimbusds.jose.crypto.AESCBCTest): Illegal key size
testWithA192CBC_HS384(com.nimbusds.jose.crypto.DirectCryptoTest): Illegal key size
testWithA256CBC_HS512(com.nimbusds.jose.crypto.DirectCryptoTest): Illegal key size
testWithA192CBC_HS384(com.nimbusds.jose.crypto.RSA1_5Test): Illegal key size
testWithA256CBC_HS512(com.nimbusds.jose.crypto.RSA1_5Test): Illegal key size
testWithDeprecatedA256CBC_HS512(com.nimbusds.jose.crypto.RSA1_5Test): Illegal key size
Any ideas why they failed?
Version with last commit 53c084d64345fd36e5728591236c548d66760cb3
Comments (5)
-
reporter -
reporter -
assigned issue to
-
assigned issue to
-
- changed status to invalid
Hi,
You're probably using an export restricted Java edition that limits key sizes to 128 bits. The following can be of help:
http://www.javamex.com/tutorials/cryptography/unrestricted_policy_files.shtml
Cheers,
Vladimir
-
-
reporter Thank you, it works!
Just check the link to "Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7 Download" on connect2id site. It seems to be corrupt.
- Log in to comment