Add memzero
This commit is contained in:
parent
5397910bbb
commit
226ecd8778
4
index.js
4
index.js
@ -2180,6 +2180,10 @@ var crypto_secretbox_KEYBYTES = 32,
|
||||
crypto_sign_SEEDBYTES = 32,
|
||||
crypto_hash_BYTES = 64;
|
||||
|
||||
sodium.memzero = function (len, offset) {
|
||||
for (var i = offset; i < len; i++) arr[i] = 0;
|
||||
}
|
||||
|
||||
sodium.randombytes_buf = randombytes_buf
|
||||
|
||||
sodium.crypto_sign_BYTES = crypto_sign_BYTES
|
||||
|
Loading…
Reference in New Issue
Block a user