Browse Source

woops ... actually check that output is correct

patch-2
Ryan X. Charles 11 years ago
parent
commit
ae02a878dd
  1. 1
      test/test.cbc.js

1
test/test.cbc.js

@ -133,6 +133,7 @@ describe('CBC', function() {
var blockcipher = AES;
var encbuf = CBC.encrypt(messagebuf, ivbuf, blockcipher, cipherkeybuf);
var buf2 = CBC.decrypt(encbuf, ivbuf, blockcipher, cipherkeybuf);
buf2.toString('hex').should.equal(messagebuf.toString('hex'));
});
});

Loading…
Cancel
Save