Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement equal_const_time/2 as nif #2749

Closed
wants to merge 3 commits into from

Commits on Sep 15, 2020

  1. Implement equal_const_time/2 as nif

    - add C implementation for equal_const_binary/2 (delegates to CRYPTO_memcmp)
    
    - modify crypto.erl to delegate to nif implementation when arguments
       are binaries, otherwise go with the existing implementation for lists.
    
    - add minimal tests.
    Bryan Paxton committed Sep 15, 2020
    Copy the full SHA
    153a9fc View commit details
    Browse the repository at this point in the history
  2. Update lib/crypto/src/crypto.erl

    Co-authored-by: José Valim <jose.valim@gmail.com>
    starbelly and josevalim committed Sep 15, 2020
    Copy the full SHA
    d7e63e8 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2020

  1. add secure_compare/2 as binary bif

    Bryan Paxton committed Sep 20, 2020
    Copy the full SHA
    a1ed04a View commit details
    Browse the repository at this point in the history