Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Erlang: ripemd160 not supported

my erlang version is 24 and it does not support ripemd160 hash algorithm and i don’t know why. the erlang crytpo document says it is a supported algorithm.

crypto:start(),
B = crypto:hash(ripemd160, H).

it gives me this error:

** exception error: notsup
     in function  crypto:notsup_to_error/1 (crypto.erl, line 2147)

i searched online for this and could not found the solution and tried couple of method but could not solve it.
thanks in advance.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Your Erlang installation seems to match release 24.2.1, and thus is affected by this part of the crypto release notes:

The hash algorithms md4 and ripemd160 are disabled temporarily when compiled with OpenSSL 3.0.

Support for these algorithms was reinstated in release 24.3.


Note that support for OpenSSL 3 (as opposed to 1.1.1 and earlier versions) was considered experimental for all Erlang 24 releases. Release 25.1 was the first one that said:

Crypto is now considered to be usable with the OpenSSL 3.0 cryptolib for production code.

ENGINE and FIPS are not yet fully functional.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading