hypercore-crypto
Advanced tools
Comparing version 2.0.2 to 2.1.0
@@ -137,4 +137,12 @@ const sodium = require('./sodium') | ||
if (sodium.sodium_free) { | ||
exports.free = function (secureBuf) { | ||
if (secureBuf.secure) sodium.sodium_free(secureBuf) | ||
} | ||
} else { | ||
exports.free = function () {} | ||
} | ||
function encodeUInt64 (n) { | ||
return uint64be.encode(n, Buffer.allocUnsafe(8)) | ||
} |
{ | ||
"name": "hypercore-crypto", | ||
"version": "2.0.2", | ||
"version": "2.1.0", | ||
"description": "The crypto primitives used in hypercore, extracted into a separate module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8936
180