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

Conversation

hanssv
Copy link
Contributor

@hanssv hanssv commented Oct 1, 2021

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

Bryan Paxton and others added 4 commits January 6, 2021 13:08
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.
Fix NIF-load issue on init:restart
seanhinde and others added 3 commits November 16, 2021 15:08
on Darwin allow platform to decide arch
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants