2020-06-16 14:58:58 +00:00
|
|
|
'use strict'
|
2017-01-24 10:41:06 +00:00
|
|
|
|
|
|
|
// Based on https://github.com/dchest/tweetnacl-js/blob/6dcbcaf5f5cbfd313f2dcfe763db35c828c8ff5b/nacl-fast.js.
|
|
|
|
|
|
|
|
// Ported in 2014 by Dmitry Chestnykh and Devi Mandiri.
|
|
|
|
// Public domain.
|
|
|
|
//
|
|
|
|
// Implementation derived from TweetNaCl version 20140427.
|
|
|
|
// See for details: http://tweetnacl.cr.yp.to/
|
|
|
|
|
2020-08-12 13:39:14 +00:00
|
|
|
forward(require('./randombytes'))
|
2020-06-24 12:01:48 +00:00
|
|
|
forward(require('./memory'))
|
2020-08-12 13:39:14 +00:00
|
|
|
forward(require('./helpers'))
|
2023-05-23 16:06:05 +00:00
|
|
|
forward(require('./utils'))
|
2020-09-22 12:49:40 +00:00
|
|
|
forward(require('./crypto_auth'))
|
2020-05-04 19:08:29 +00:00
|
|
|
forward(require('./crypto_box'))
|
2022-11-18 12:21:38 +00:00
|
|
|
forward(require('./crypto_core'))
|
2023-05-23 15:44:24 +00:00
|
|
|
forward(require('./crypto_core_ristretto255'))
|
2020-05-04 19:08:29 +00:00
|
|
|
forward(require('./crypto_generichash'))
|
2020-05-04 18:52:17 +00:00
|
|
|
forward(require('./crypto_hash'))
|
2020-06-18 12:09:12 +00:00
|
|
|
forward(require('./crypto_hash_sha256'))
|
2020-05-04 19:08:29 +00:00
|
|
|
forward(require('./crypto_kdf'))
|
2020-06-16 13:54:44 +00:00
|
|
|
forward(require('./crypto_kx'))
|
2020-06-16 22:56:59 +00:00
|
|
|
forward(require('./crypto_aead'))
|
2020-05-04 19:08:29 +00:00
|
|
|
forward(require('./crypto_onetimeauth'))
|
2023-05-23 15:44:24 +00:00
|
|
|
forward(require('./crypto_scalarmult_ed25519'))
|
|
|
|
// forward(require('./crypto_scalarmult'))
|
2020-06-18 15:09:03 +00:00
|
|
|
forward(require('./crypto_scalarmult'))
|
2020-05-04 19:04:41 +00:00
|
|
|
forward(require('./crypto_secretbox'))
|
2022-01-14 16:42:28 +00:00
|
|
|
forward(require('./crypto_secretstream'))
|
2020-05-04 19:08:29 +00:00
|
|
|
forward(require('./crypto_shorthash'))
|
2020-10-30 09:45:51 +00:00
|
|
|
// forward(require('./crypto_sign'))
|
|
|
|
forward(require('./crypto_sign_ed25519'))
|
2020-05-04 16:47:52 +00:00
|
|
|
forward(require('./crypto_stream'))
|
2020-06-12 15:06:31 +00:00
|
|
|
forward(require('./crypto_stream_chacha20'))
|
2023-05-23 15:44:24 +00:00
|
|
|
forward(require('./crypto_tweak'))
|
2020-06-17 11:10:21 +00:00
|
|
|
forward(require('./crypto_verify'))
|
2017-01-24 10:41:06 +00:00
|
|
|
|
2017-06-06 19:04:36 +00:00
|
|
|
function forward (submodule) {
|
|
|
|
Object.keys(submodule).forEach(function (prop) {
|
|
|
|
module.exports[prop] = submodule[prop]
|
|
|
|
})
|
|
|
|
}
|