Comparing version 0.5.0 to 0.6.0
@@ -101,2 +101,5 @@ /*! | ||
this.version = undefined; | ||
this.native = undefined; | ||
// Swallow errors | ||
@@ -103,0 +106,0 @@ this.on('error', () => {}); |
@@ -47,1 +47,5 @@ /*! | ||
exports.Zone = require('./zone'); | ||
exports.version = '0.5.0'; | ||
exports.unbound = exports.UnboundResolver.version; | ||
exports.native = exports.UnboundResolver.native; |
@@ -607,4 +607,4 @@ /*! | ||
[algs.RSASHA512]: hashes.SHA512, | ||
[algs.ED25519]: hashes.SHA512, | ||
[algs.ED448]: hashes.SHA512 | ||
[algs.ED25519]: null, | ||
[algs.ED448]: null | ||
}; | ||
@@ -611,0 +611,0 @@ |
@@ -69,4 +69,4 @@ /*! | ||
[algs.RSASHA512]: crypto.sha512, | ||
[algs.ED25519]: crypto.sha512, | ||
[algs.ED448]: crypto.sha512 | ||
[algs.ED25519]: {}, | ||
[algs.ED448]: {} | ||
}; | ||
@@ -77,3 +77,3 @@ | ||
[hashes.SHA256]: crypto.sha256, | ||
[hashes.GOST94]: null, | ||
[hashes.GOST94]: crypto.gost94, | ||
[hashes.SHA384]: crypto.sha384, | ||
@@ -160,7 +160,2 @@ [hashes.SHA512]: crypto.sha512 | ||
const ctx = hash.hash(); | ||
ctx.init(); | ||
ctx.update(owner); | ||
ctx.update(raw); | ||
const rr = new Record(); | ||
@@ -178,3 +173,3 @@ const rd = new DSRecord(); | ||
rd.keyTag = keyTag; | ||
rd.digest = ctx.final(); | ||
rd.digest = hash.multi(owner, raw); | ||
@@ -181,0 +176,0 @@ return rr; |
@@ -18,2 +18,3 @@ /*! | ||
const SHA512 = require('bcrypto/lib/sha512'); | ||
const GOST94 = require('bcrypto/lib/gost94'); | ||
const dsa = require('bcrypto/lib/dsa'); | ||
@@ -24,3 +25,3 @@ const rsa = require('bcrypto/lib/rsa'); | ||
const ed25519 = require('bcrypto/lib/ed25519'); | ||
const ed448 = require('bcrypto/lib/js/ed448'); | ||
const ed448 = require('bcrypto/lib/ed448'); | ||
@@ -37,2 +38,3 @@ /* | ||
exports.sha512 = SHA512; | ||
exports.gost94 = GOST94; | ||
@@ -39,0 +41,0 @@ /* |
@@ -75,16 +75,7 @@ /*! | ||
const ctx = hash.hash(); | ||
ctx.init(); | ||
ctx.update(nameRaw); | ||
ctx.update(saltRaw); | ||
let nameHash = hash.multi(nameRaw, saltRaw); | ||
let nameHash = ctx.final(); | ||
for (let i = 0; i < iter; i++) | ||
nameHash = hash.multi(nameHash, saltRaw); | ||
for (let i = 0; i < iter; i++) { | ||
ctx.init(); | ||
ctx.update(nameHash); | ||
ctx.update(saltRaw); | ||
nameHash = ctx.final(); | ||
} | ||
return nameHash; | ||
@@ -91,0 +82,0 @@ }; |
@@ -660,2 +660,9 @@ /*! | ||
/* | ||
* Static | ||
*/ | ||
RecursiveResolver.version = '0.0.0'; | ||
RecursiveResolver.native = 0; | ||
/* | ||
* Helpers | ||
@@ -662,0 +669,0 @@ */ |
@@ -271,2 +271,9 @@ /*! | ||
/* | ||
* Static | ||
*/ | ||
UnboundResolver.version = Unbound.version(); | ||
UnboundResolver.native = 2; | ||
/* | ||
* Helpers | ||
@@ -273,0 +280,0 @@ */ |
@@ -45,2 +45,9 @@ /*! | ||
/* | ||
* Static | ||
*/ | ||
UnboundServer.version = UnboundResolver.version; | ||
UnboundServer.native = UnboundResolver.native; | ||
/* | ||
* Expose | ||
@@ -47,0 +54,0 @@ */ |
@@ -39,3 +39,3 @@ /*! | ||
module.exports = API.make(createResolver, { | ||
const api = API.make(createResolver, { | ||
tcp: true, | ||
@@ -45,1 +45,6 @@ edns: true, | ||
}); | ||
api.version = UnboundResolver.version; | ||
api.native = UnboundResolver.native; | ||
module.exports = api; |
{ | ||
"name": "bns", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "DNS bike-shed", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
665884
25534