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

Expose the ed25519 API #61

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Commits on Jan 6, 2021

  1. Ensure we never return 1 from sodium_init() onload

    sodium_init() will return 0 on success, -1 on failure, and 1 if sodium is
    already loaded and initialized (which is not an error). In the case
    where libsodium is already initialized and the system is restarted we
    may return 1 from onload nif function resulting in a crash.
    
    - change the call to sodium_init() to check for an error return (-1) and
      return -1 explicitly in this case, otherwise always return zero at the
      end of our onload function.
    Bryan Paxton authored and Hans Svensson committed Jan 6, 2021
    Configuration menu
    Copy the full SHA
    868a14c View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2021

  1. Merge pull request #5 from aeternity/hs-fix_restart_issue

    Fix NIF-load issue on init:restart
    hanssv authored Jan 7, 2021
    Configuration menu
    Copy the full SHA
    a45b433 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2021

  1. Configuration menu
    Copy the full SHA
    db9338e View commit details
    Browse the repository at this point in the history

Commits on Oct 8, 2021

  1. Merge pull request #6 from aeternity/merge_upstream

    Merge upstream
    hanssv authored Oct 8, 2021
    Configuration menu
    Copy the full SHA
    793ddb5 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2021

  1. Configuration menu
    Copy the full SHA
    80e2467 View commit details
    Browse the repository at this point in the history

Commits on Nov 19, 2021

  1. Merge pull request #8 from aeternity/mac-m1-support

    on Darwin allow platform to decide arch
    seanhinde authored Nov 19, 2021
    Configuration menu
    Copy the full SHA
    67fceef View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2021

  1. Expose the ed25519 API

    This adds a low-level APIs to perform computations over the edwards25519
    curve, only useful to implement custom constructions.
    
    Exposed functions:
      crypto_ed25519_scalarmult/2,
      crypto_ed25519_scalarmult_base/1,
      crypto_ed25519_scalarmult_noclamp/2,
      crypto_ed25519_scalarmult_base_noclamp/1,
      crypto_ed25519_add/2,
      crypto_ed25519_sub/2,
      crypto_ed25519_is_valid_point/1,
      crypto_ed25519_scalar_reduce/1,
      crypto_ed25519_scalar_negate/1,
      crypto_ed25519_scalar_add/2,
      crypto_ed25519_scalar_sub/2,
      crypto_ed25519_scalar_mul/2
    hanssv committed Dec 23, 2021
    Configuration menu
    Copy the full SHA
    fb288f2 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2022

  1. Configuration menu
    Copy the full SHA
    5bae41c View commit details
    Browse the repository at this point in the history