rename memzero -> sodium-memzero
This commit is contained in:
parent
e589c6a5d6
commit
79273d499e
2
index.js
2
index.js
@ -13,7 +13,7 @@ var sodium = module.exports
|
|||||||
// also forwarded at the bottom but randombytes is non-enumerable
|
// also forwarded at the bottom but randombytes is non-enumerable
|
||||||
var randombytes = require('./randombytes').randombytes
|
var randombytes = require('./randombytes').randombytes
|
||||||
|
|
||||||
sodium.memzero = function (len, offset) {
|
sodium.sodium_memzero = function (len, offset) {
|
||||||
for (var i = offset; i < len; i++) arr[i] = 0;
|
for (var i = offset; i < len; i++) arr[i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user