Handle the ED25519 to Curve25519 conversion routines.

Make sure these either execute on the Dirty Scheduler or execute with bumping
reductions.
This commit is contained in:
Jesper Louis Andersen
2015-08-29 22:08:34 +02:00
parent 2e5163a934
commit 2cad66ac2a
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -1063,7 +1063,7 @@ static ErlNifFunc nif_funcs[] = {
{"crypto_verify_16", 2, enif_crypto_verify_16},
{"crypto_verify_32", 2, enif_crypto_verify_32},
{"crypto_curve25519_scalarmult", 2, enif_crypto_curve25519_scalarmult},
{"crypto_curve25519_scalarmult", 2, enif_crypto_curve25519_scalarmult, ERL_NIF_DIRTY_JOB_CPU_BOUND},
{"crypto_sign_ed25519_keypair", 0, enif_crypto_sign_ed25519_keypair, ERL_NIF_DIRTY_JOB_CPU_BOUND},
{"crypto_sign_ed25519_public_to_curve25519", 1, enif_crypto_sign_ed25519_public_to_curve25519},