Skip to content

Commit

Permalink
remove useless test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart Butler committed Mar 15, 2017
1 parent 4a68712 commit 23195c2
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions test/general/signature.js
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ describe("Signature", function() {
expect(result[0].valid).to.be.true;
});

it('Detached signature signing and verification cleartext', function () {
it('Detached signature signing and verification', function () {
var msg = openpgp.message.fromText('hello');
var pubKey2 = openpgp.key.readArmored(pub_key_arm2).keys[0];
var privKey2 = openpgp.key.readArmored(priv_key_arm2).keys[0];
Expand All @@ -669,24 +669,6 @@ describe("Signature", function() {
});
});

it('Detached signature signing and verification encrypted', function () {
var msg = openpgp.message.fromText('hello');
var pubKey2 = openpgp.key.readArmored(pub_key_arm2).keys[0];
var privKey2 = openpgp.key.readArmored(priv_key_arm2).keys[0];
privKey2.decrypt('hello world');
msg.encrypt([pubKey2]);

var detachedSig = msg.signDetached([privKey2]);

var opt = {numBits: 512, userIds: { name:'test', email:'a@b.com' }, passphrase: null};
if (openpgp.util.getWebCryptoAll()) { opt.numBits = 2048; } // webkit webcrypto accepts minimum 2048 bit keys
openpgp.generateKey(opt).then(function(gen) {
var key = gen.key;
var result = msg.verifyDetached(detachedSig, [pubKey2, key.toPublic()]);
expect(result[0].valid).to.be.true;
});
});

it('Sign message with key without password', function(done) {
var opt = {numBits: 512, userIds: { name:'test', email:'a@b.com' }, passphrase: null};
if (openpgp.util.getWebCryptoAll()) { opt.numBits = 2048; } // webkit webcrypto accepts minimum 2048 bit keys
Expand Down

0 comments on commit 23195c2

Please sign in to comment.