New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

kbpgp

Package Overview
Dependencies
Maintainers
1
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kbpgp - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

test-stamp

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 0.0.15 (2014-03-06)
Bugfixes:
- Get 8192-RSA keys works. Close keybase/keybase-issues#128
## 0.0.14 (2014-03-06)

@@ -2,0 +8,0 @@

2

lib/keyring.js

@@ -65,3 +65,3 @@ // Generated by IcedCoffeeScript 1.7.1-a

if ((km = this._kms[(kid = hexkid(key_id))]) == null) {
err = new Error('Could not find key for fingerprint #{kid}');
err = new Error("Could not find key for fingerprint " + kid);
} else if ((key = km.find_best_pgp_key(flags)) == null) {

@@ -68,0 +68,0 @@ err = new Error("no matching key for flags: " + flags);

@@ -112,3 +112,3 @@ // Generated by IcedCoffeeScript 1.7.1-a

parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/pad.iced"
filename: "/Users/max/src/keybase/kbpgp/src/pad.iced"
});

@@ -159,3 +159,3 @@ SRF().random_bytes(diff, __iced_deferrals.defer({

parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/pad.iced",
filename: "/Users/max/src/keybase/kbpgp/src/pad.iced",
funcname: "eme_pkcs1_encode"

@@ -162,0 +162,0 @@ });

// Generated by IcedCoffeeScript 1.7.1-a
(function() {
var BigInteger, Lock, MRF, MediumRandomFountain, SRF, StrongRandomFountain, iced, native_rng, prng, __iced_k, __iced_k_noop, _mrf, _srf;
var BigInteger, Lock, MRF, MediumRandomFountain, SRF, StrongRandomFountain, WordArray, iced, native_rng, prng, __iced_k, __iced_k_noop, _mrf, _ref, _srf;

@@ -10,3 +10,3 @@ iced = require('iced-coffee-script/lib/coffee-script/iced').runtime;

prng = require('triplesec').prng;
_ref = require('triplesec'), WordArray = _ref.WordArray, prng = _ref.prng;

@@ -72,3 +72,3 @@ native_rng = prng.native_rng;

parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/rand.iced",
filename: "/Users/max/src/keybase/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.random_word"

@@ -101,3 +101,3 @@ });

parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/rand.iced",
filename: "/Users/max/src/keybase/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.random_double"

@@ -130,3 +130,3 @@ });

parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/rand.iced",
filename: "/Users/max/src/keybase/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.rand_0_1"

@@ -149,3 +149,3 @@ });

parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/rand.iced",
filename: "/Users/max/src/keybase/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.rand_0_1"

@@ -200,3 +200,3 @@ });

parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/rand.iced",
filename: "/Users/max/src/keybase/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.random_zn"

@@ -228,5 +228,5 @@ });

StrongRandomFountain.prototype.nextBytes = function(v) {
var i, _i, _ref, _results;
var i, _i, _ref1, _results;
_results = [];
for (i = _i = 0, _ref = v.length; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
for (i = _i = 0, _ref1 = v.length; 0 <= _ref1 ? _i < _ref1 : _i > _ref1; i = 0 <= _ref1 ? ++_i : --_i) {
_results.push(v[i] = this.buf[i]);

@@ -238,5 +238,7 @@ }

StrongRandomFountain.prototype.random_word_array = function(nbytes, cb) {
var tmp, ___iced_passed_deferral, __iced_deferrals, __iced_k;
var b, d, max_pull, n, ret, ___iced_passed_deferral, __iced_deferrals, __iced_k;
__iced_k = __iced_k_noop;
___iced_passed_deferral = iced.findDeferral(arguments);
ret = new WordArray();
max_pull = 512;
(function(_this) {

@@ -246,7 +248,7 @@ return (function(__iced_k) {

parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/rand.iced",
filename: "/Users/max/src/keybase/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.random_word_array"
});
_this.lock.acquire(__iced_deferrals.defer({
lineno: 85
lineno: 88
}));

@@ -258,19 +260,46 @@ __iced_deferrals._fulfill();

(function(__iced_k) {
__iced_deferrals = new iced.Deferrals(__iced_k, {
parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.random_word_array"
});
prng.generate(nbytes, __iced_deferrals.defer({
assign_fn: (function() {
return function() {
return tmp = arguments[0];
};
})(),
lineno: 86
}));
__iced_deferrals._fulfill();
var _results, _while;
_results = [];
_while = function(__iced_k) {
var _break, _continue, _next;
_break = function() {
return __iced_k(_results);
};
_continue = function() {
return iced.trampoline(function() {
return _while(__iced_k);
});
};
_next = function(__iced_next_arg) {
_results.push(__iced_next_arg);
return _continue();
};
if (!((d = nbytes - ret.sigBytes) > 0)) {
return _break();
} else {
n = Math.min(max_pull, d);
(function(__iced_k) {
__iced_deferrals = new iced.Deferrals(__iced_k, {
parent: ___iced_passed_deferral,
filename: "/Users/max/src/keybase/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.random_word_array"
});
prng.generate(n, __iced_deferrals.defer({
assign_fn: (function() {
return function() {
return b = arguments[0];
};
})(),
lineno: 91
}));
__iced_deferrals._fulfill();
})(function() {
return _next(ret = ret.concat(b));
});
}
};
_while(__iced_k);
})(function() {
_this.lock.release();
return cb(tmp);
return cb(ret);
});

@@ -289,3 +318,3 @@ };

parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/rand.iced",
filename: "/Users/max/src/keybase/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.random_bytes"

@@ -299,3 +328,3 @@ });

})(),
lineno: 93
lineno: 99
}));

@@ -315,2 +344,3 @@ __iced_deferrals._fulfill();

___iced_passed_deferral = iced.findDeferral(arguments);
nbytes = (nbits >> 3) + 1;
(function(_this) {

@@ -320,7 +350,12 @@ return (function(__iced_k) {

parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/rand.iced",
filename: "/Users/max/src/keybase/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.random_nbit"
});
_this.lock.acquire(__iced_deferrals.defer({
lineno: 99
_this.random_bytes(nbytes, __iced_deferrals.defer({
assign_fn: (function() {
return function() {
return tmp = arguments[0];
};
})(),
lineno: 106
}));

@@ -331,20 +366,14 @@ __iced_deferrals._fulfill();

return function() {
nbytes = (nbits >> 3) + 1;
(function(__iced_k) {
__iced_deferrals = new iced.Deferrals(__iced_k, {
parent: ___iced_passed_deferral,
filename: "/Users/max/src/kbpgp/src/rand.iced",
filename: "/Users/max/src/keybase/kbpgp/src/rand.iced",
funcname: "StrongRandomFountain.random_nbit"
});
prng.generate(nbytes, __iced_deferrals.defer({
assign_fn: (function() {
return function() {
return tmp = arguments[0];
};
})(),
lineno: 101
_this.lock.acquire(__iced_deferrals.defer({
lineno: 107
}));
__iced_deferrals._fulfill();
})(function() {
_this.buf = tmp.to_buffer();
_this.buf = tmp;
ret = BigInteger.random_nbit(nbits, _this);

@@ -351,0 +380,0 @@ _this.lock.release();

@@ -10,3 +10,3 @@ {

"author": "Maxwell Krohn",
"version": "0.0.14",
"version": "0.0.15",
"license": "BSD-3-Clause",

@@ -13,0 +13,0 @@ "main": "./lib/main.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc