woops ... actually check that output is correct
This commit is contained in:
parent
ed826bf95c
commit
ae02a878dd
@ -133,6 +133,7 @@ describe('CBC', function() {
|
|||||||
var blockcipher = AES;
|
var blockcipher = AES;
|
||||||
var encbuf = CBC.encrypt(messagebuf, ivbuf, blockcipher, cipherkeybuf);
|
var encbuf = CBC.encrypt(messagebuf, ivbuf, blockcipher, cipherkeybuf);
|
||||||
var buf2 = CBC.decrypt(encbuf, ivbuf, blockcipher, cipherkeybuf);
|
var buf2 = CBC.decrypt(encbuf, ivbuf, blockcipher, cipherkeybuf);
|
||||||
|
buf2.toString('hex').should.equal(messagebuf.toString('hex'));
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user