On Tue, Jul 26, 2016 at 10:35 PM, Andreas Delmelle < [email protected]> wrote:
> Hi Jan > > > On 26 Jul 2016, at 22:15, Jan Tosovsky <[email protected]> wrote: > > > > Dear All, > > > > I've updated local copy to the current (mavenized) version and I am > unable > > build (Oracle JDK 1.8) the FOP Core project: > > (1) testAES256() fails with > > java.lang.IllegalStateException: java.security.InvalidKeyException: > Illegal > > key size > > at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1034) > > ... > > at > > o.a.f.pdf.PDFEncryptionJCETestCase.testAES256( > PDFEncryptionJCETestCase.java: > > 468) > > Are you on OS X/macOS? > I am not entirely sure, but I seem to recall running into that as well. It > just means you need to download the "unlimited strength" encryption policy > files from Oracle. They made that a separate download, just like in the > good old Sun days. On OS X, when Apple maintained their own JDK, it was > always included. I only ran into that after Apple abandoned maintenance of > the JDK for OS X... > > see - http://www.oracle.com/technetwork/java/javase/ > downloads/jce8-download-2133166.html I am on OS X and I can confirm I had the same issue and the solution proposed by Adreas did the trick, thank you! Jacopo
