Re: Current BC master (Java) fails tests
Uri Blumenthal <[email protected]>
| Newsgroups | gmane.comp.encryption.bouncy-castle.devel |
|---|---|
| Message-ID | <[email protected]> |
The only change I'm aware of is that is uses /dev/urandom. Otherwise - a perfectly standard installation, same as all the previous JVM/JDK that were installed (and had BC built and tested on them). I'll experiment with reverting it back to /dev/random, and report here. Though of course, BC shouldn't fail tests because of that. Sent from my test iPhone On Aug 11, 2018, at 23:21, David Hook <dgh-rTAZ0PM/[email protected]<mailto:[email protected]>> wrote: This appears to be saying that a setSeed call on the native PRNG has failed. It's not actually managing to call any Bouncy Castle provider code. The "Caused by: java.io.IOException: Operation not permitted" is the give away. Is there anything unusual about the way the JVM is configured? Regards, David On 12/08/18 13:05, Uri Blumenthal wrote: Here’s the error: setSeed() failed java.security.ProviderException: setSeed() failed at sun.security.provider.NativePRNG$RandomIO.implSetSeed(NativePRNG.java:472) at sun.security.provider.NativePRNG$RandomIO.access$300(NativePRNG.java:331) at sun.security.provider.NativePRNG.engineSetSeed(NativePRNG.java:214) at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:209) at java.security.SecureRandom.<init>(SecureRandom.java:190) at org.bouncycastle.jcajce.provider.test.HybridRandomProviderTest.testCheckForStackOverflow(Unknown Source) at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23) at junit.extensions.TestSetup$1.protect(TestSetup.java:23) at junit.extensions.TestSetup.run(TestSetup.java:27) Caused by: java.io.IOException: Operation not permitted at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:313) at sun.security.provider.NativePRNG$RandomIO.implSetSeed(NativePRNG.java:470) MacOS 10.13.6, JDK-1.8.0_181.