[ 
https://issues.apache.org/jira/browse/CRYPTO-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16720474#comment-16720474
 ] 

Marcelo Vanzin commented on CRYPTO-142:
---------------------------------------

This is probably because of OpenSSL 1.1 compatibility.

> Native library does not load if ENGINE_load_rdrand is not available
> -------------------------------------------------------------------
>
>                 Key: CRYPTO-142
>                 URL: https://issues.apache.org/jira/browse/CRYPTO-142
>             Project: Commons Crypto
>          Issue Type: Bug
>          Components: Native
>    Affects Versions: 1.0.0
>            Reporter: Marcelo Vanzin
>            Priority: Major
>
> Found this when running tests on Travis:
> {noformat}
> java.security.GeneralSecurityException: CryptoRandom: 
> [org.apache.commons.crypto.random.OpenSslCryptoRandom] failed with 
> java.lang.reflect.InvocationTargetException
>       at 
> org.apache.commons.crypto.random.OpenSslCryptoRandomTest.getCryptoRandom(OpenSslCryptoRandomTest.java:37)
> Caused by: java.lang.RuntimeException: 
> java.lang.reflect.InvocationTargetException
>       at 
> org.apache.commons.crypto.random.OpenSslCryptoRandomTest.getCryptoRandom(OpenSslCryptoRandomTest.java:37)
> Caused by: java.lang.reflect.InvocationTargetException
>       at 
> org.apache.commons.crypto.random.OpenSslCryptoRandomTest.getCryptoRandom(OpenSslCryptoRandomTest.java:37)
> Caused by: java.security.GeneralSecurityException: Native library could not 
> be initialised
>       at 
> org.apache.commons.crypto.random.OpenSslCryptoRandomTest.getCryptoRandom(OpenSslCryptoRandomTest.java:37)
> Caused by: java.lang.UnsatisfiedLinkError: ENGINE_load_rdrand
> {noformat}
> It seems that the OpenSSL library available on the build machine does not 
> have that function. It would be nice to allow the rest of the native code 
> (e.g. the ciphers) to still work in that situation.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to