[ 
https://issues.apache.org/jira/browse/CRYPTO-138?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Marcelo Vanzin resolved CRYPTO-138.
-----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.1.0

Should be fixed now:
https://github.com/apache/commons-crypto/commit/2875340ca3f9f5b19cd14939d9c0fbba500687f1

> failed to run on openssl 1.1.0g
> -------------------------------
>
>                 Key: CRYPTO-138
>                 URL: https://issues.apache.org/jira/browse/CRYPTO-138
>             Project: Commons Crypto
>          Issue Type: Bug
>          Components: Cipher
>    Affects Versions: 1.0.0
>         Environment: uname -a
> Linux linux.fritz.box 4.14.14-300.fc27.x86_64 #1 SMP Fri Jan 19 13:19:54 UTC 
> 2018 x86_64 x86_64 x86_64 GNU/Linux
> openssl version 
> OpenSSL 1.1.0g-fips  2 Nov 2017
> java -version
> openjdk version "1.8.0_161"
> OpenJDK Runtime Environment (build 1.8.0_161-b14)
> OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode)
> ---
>            Reporter: kim
>            Priority: Major
>             Fix For: 1.1.0
>
>
> running sample code from :
> [https://commons.apache.org/proper/commons-crypto/xref-test/org/apache/commons/crypto/examples/CipherByteArrayExample.html]
> failed with this error message:
>  
> Caused by: java.security.GeneralSecurityException: CryptoCipher 
> \{org.apache.commons.crypto.cipher.OpenSslCipher} is not available or 
> transformation AES/CBC/PKCS5Padding is not supported.
>     at 
> org.apache.commons.crypto.cipher.CryptoCipherFactory.getCryptoCipher(CryptoCipherFactory.java:176)
>     at org.apache.commons.crypto.utils.Utils.getCipherInstance(Utils.java:128)
>     ... 10 more
> Caused by: java.lang.RuntimeException: 
> java.lang.reflect.InvocationTargetException
>     at 
> org.apache.commons.crypto.utils.ReflectionUtils.newInstance(ReflectionUtils.java:90)
>     at 
> org.apache.commons.crypto.cipher.CryptoCipherFactory.getCryptoCipher(CryptoCipherFactory.java:160)
>     ... 11 more
> Caused by: java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>     at 
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
>     at 
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
>     at 
> org.apache.commons.crypto.utils.ReflectionUtils.newInstance(ReflectionUtils.java:88)
>     ... 12 more
> Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: 
> EVP_CIPHER_CTX_cleanup
>     at 
> org.apache.commons.crypto.cipher.OpenSslCipher.<init>(OpenSslCipher.java:59)
>     ... 17 more
> Caused by: java.lang.UnsatisfiedLinkError: EVP_CIPHER_CTX_cleanup
>     at org.apache.commons.crypto.cipher.OpenSslNative.initIDs(Native Method)
>     at org.apache.commons.crypto.cipher.OpenSsl.<clinit>(OpenSsl.java:95)
>     at 
> org.apache.commons.crypto.cipher.OpenSslCipher.<init>(OpenSslCipher.java:57)
>     ... 17 more
> Process finished with exit code 1
>  
> ---
>  
> i guess it has something to do with changes of openssl from 1.0 -> 1.1
> https://stackoverflow.com/questions/26345175/correct-way-to-free-allocate-the-context-in-the-openssl
>  
>  
>  
>  
>  



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

Reply via email to