JUnit Tests failed: Illegal key size

Issue #94 invalid
Kristina Sahlmann created an issue

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)

  1. Kristina Sahlmann 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.

  2. Log in to comment