Add secure_compare/2 BIF on the crypto module

Bryan Frimin <[email protected]>
Newsgroups gmane.comp.lang.erlang.general
Message-ID <[email protected]>
Hello everyone,

I propose to add `secure_compare/2` function on the `crypto` module.

Constant time memory comparison is a common mechanism for
applications/libraries dealing with crypto logic. It is easy to code
this function in Erlang[1], but the OpenSSL one is safe and fast.

It's why I suggest enriching the crypto module with this function. I've
already opened a pull request[2].

I tried as much as possible to follow the contribution guide. Don't
hesitate to tell me if I made a mistake somewhere.

[1] https://github.com/exograd/erl-pkcs5/blob/master/src/pkcs5.erl#L34
[2] https://github.com/erlang/otp/pull/4750

Regards,
-- 
Bryan Frimin
https://www.frimin.fr
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.