Skip to content

Commit

Permalink
Release new version
Browse files Browse the repository at this point in the history
  • Loading branch information
toberndo committed Oct 5, 2015
1 parent 668a9bb commit 0958a9e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 15 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openpgp",
"version": "1.2.0",
"version": "1.3.0",
"homepage": "http://openpgpjs.org/",
"authors": [
"OpenPGP Development Team <list@openpgpjs.org> (https://github.com/openpgpjs/openpgpjs/graphs/contributors)"
Expand Down
25 changes: 17 additions & 8 deletions dist/openpgp.js
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ module.exports = {

show_version: true,
show_comment: true,
versionstring: "OpenPGP.js v1.2.0",
versionstring: "OpenPGP.js v1.3.0",
commentstring: "http://openpgpjs.org",

keyserver: "keyserver.linux.it", // "pgp.mit.edu:11371"
Expand Down Expand Up @@ -5255,7 +5255,6 @@ function ii(a, b, c, d, x, s, t) {
}

function md51(s) {
txt = '';
var n = s.length,
state = [1732584193, -271733879, -1732584194, 271733878],
i;
Expand Down Expand Up @@ -15922,6 +15921,10 @@ S2K.prototype.write = function () {
bytes += this.salt;
bytes += String.fromCharCode(this.c);
break;
case 'gnu':
throw new Error("GNU s2k type not supported.");
default:
throw new Error("Unknown s2k type.");
}

return bytes;
Expand Down Expand Up @@ -15950,8 +15953,8 @@ S2K.prototype.produce_key = function (passphrase, numBytes) {

case 'iterated':
var isp = [],
count = s2k.get_count();
data = s2k.salt + passphrase;
count = s2k.get_count(),
data = s2k.salt + passphrase;

while (isp.length * data.length < count)
isp.push(data);
Expand All @@ -15962,6 +15965,12 @@ S2K.prototype.produce_key = function (passphrase, numBytes) {
isp = isp.substr(0, count);

return crypto.hash.digest(algorithm, prefix + isp);

case 'gnu':
throw new Error("GNU s2k type not supported.");

default:
throw new Error("Unknown s2k type.");
}
}

Expand Down Expand Up @@ -16655,8 +16664,8 @@ AsyncProxy.prototype.decryptKey = function(privateKey, password) {
});

self.tasks.push({ resolve:function(data) {
var packetlist = packet.List.fromStructuredClone(data);
data = new key.Key(packetlist);
var packetlist = packet.List.fromStructuredClone(data),
data = new key.Key(packetlist);
resolve(data);
}, reject:reject });
});
Expand All @@ -16683,8 +16692,8 @@ AsyncProxy.prototype.decryptKeyPacket = function(privateKey, keyIds, password) {
});

self.tasks.push({ resolve:function(data) {
var packetlist = packet.List.fromStructuredClone(data);
data = new key.Key(packetlist);
var packetlist = packet.List.fromStructuredClone(data),
data = new key.Key(packetlist);
resolve(data);
}, reject:reject });
});
Expand Down
8 changes: 4 additions & 4 deletions dist/openpgp.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/openpgp.worker.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "openpgp",
"description": "OpenPGP.js is a Javascript implementation of the OpenPGP protocol. This is defined in RFC 4880.",
"version": "1.2.0",
"version": "1.3.0",
"homepage": "http://openpgpjs.org/",
"engines": {
"node": ">=0.8"
Expand Down

0 comments on commit 0958a9e

Please sign in to comment.