From 49587c3d7f219600e5d273cc0b39887885c7e377 Mon Sep 17 00:00:00 2001 From: Daniel Regeci Date: Sun, 18 Mar 2018 11:36:26 +0700 Subject: [PATCH] crypto_box_keypair - rename arguments to pk,sk --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 5db2452..7d8612c 100644 --- a/index.js +++ b/index.js @@ -1736,11 +1736,11 @@ function crypto_secretbox_open_easy(msg, box, n, k) { return true } -function crypto_box_keypair(x, y) { - check(x, crypto_box_PUBLICKEYBYTES) - check(y, crypto_box_SECRETKEYBYTES) - randombytes(x, 32); - return crypto_scalarmult_base(y, x); +function crypto_box_keypair(pk, sk) { + check(pk, crypto_box_PUBLICKEYBYTES) + check(sk, crypto_box_SECRETKEYBYTES) + randombytes(pk, 32); + return crypto_scalarmult_base(sk, pk); } var crypto_secretbox_KEYBYTES = 32,