Skip to content

Commit

Permalink
Drop support for 0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
autoit4you committed Sep 18, 2015
1 parent 2ad8eae commit 819af8a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
language: node_js
node_js:
- "0.12"
- "0.10"
- "iojs-3"
- "4"
before_script: "make"
Expand Down
18 changes: 8 additions & 10 deletions test/jwa.content.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@ var version = process.version.split(".");

describe("jwa", function() {
[128, 192, 256].forEach(function(bits) {
if(version[0] > 0 || version[1] > 10) {
describe("A" + bits + "GCM", function() {
before(function() {
alg = jwa("A" + bits + "GCM");
});
describe("A" + bits + "GCM", function() {
before(function() {
alg = jwa("A" + bits + "GCM");
});

it("should create an object with the ciphertext and tag", function() {
var enc = alg.encrypt("top secret", new Buffer("aad"), new Buffer(12), new Buffer(bits/8));
expect(enc).to.have.all.keys("cipher", "tag");
});
it("should create an object with the ciphertext and tag", function() {
var enc = alg.encrypt("top secret", new Buffer("aad"), new Buffer(12), new Buffer(bits/8));
expect(enc).to.have.all.keys("cipher", "tag");
});
}
});

describe("A" + bits + "CBC-HS" + (bits*2), function() {
before(function() {
Expand Down

0 comments on commit 819af8a

Please sign in to comment.