BREAKING: Remove unused exported methods
Some methods have accidentally been exported, even though they don't appear in Sodium-Native, which gives Sodium-JavaScript a slightly different API. The goal is to have the same API except: - Wasm methods - _instance methods (legacy) This commit removes the extra methods so that we have API parity with Sodium-Native (with the above two exceptions).
This commit is contained in:
parent
a546f3e51d
commit
460601a5d1
@ -10,8 +10,6 @@ const assert = require('nanoassert')
|
||||
const crypto_box_PUBLICKEYBYTES = 32
|
||||
const crypto_box_SECRETKEYBYTES = 32
|
||||
const crypto_box_NONCEBYTES = 24
|
||||
const crypto_box_ZEROBYTES = 32
|
||||
const crypto_box_BOXZEROBYTES = 16
|
||||
const crypto_box_SEALBYTES = 48
|
||||
const crypto_box_SEEDBYTES = 32
|
||||
const crypto_box_BEFORENMBYTES = 32
|
||||
@ -24,11 +22,8 @@ module.exports = {
|
||||
crypto_box_PUBLICKEYBYTES,
|
||||
crypto_box_SECRETKEYBYTES,
|
||||
crypto_box_NONCEBYTES,
|
||||
crypto_box_ZEROBYTES,
|
||||
crypto_box_BOXZEROBYTES,
|
||||
crypto_box_SEALBYTES,
|
||||
crypto_box_SEEDBYTES,
|
||||
crypto_box_BEFORENMBYTES
|
||||
crypto_box_SEEDBYTES
|
||||
}
|
||||
|
||||
function crypto_box_keypair (pk, sk) {
|
||||
|
@ -10,16 +10,12 @@ const crypto_secretbox_BOXZEROBYTES = 16
|
||||
const crypto_secretbox_MACBYTES = 16
|
||||
|
||||
module.exports = {
|
||||
crypto_secretbox,
|
||||
crypto_secretbox_open,
|
||||
crypto_secretbox_detached,
|
||||
crypto_secretbox_open_detached,
|
||||
crypto_secretbox_easy,
|
||||
crypto_secretbox_open_easy,
|
||||
crypto_secretbox_KEYBYTES,
|
||||
crypto_secretbox_NONCEBYTES,
|
||||
crypto_secretbox_ZEROBYTES,
|
||||
crypto_secretbox_BOXZEROBYTES,
|
||||
crypto_secretbox_MACBYTES
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user