[Pkg-javascript-commits] [node-browserify-aes] 49/92: update tests for all caps cipher
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Jun 4 09:35:19 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-browserify-aes.
commit 1cb3bef4042246ce832188ed35f494900ebbc689
Author: Calvin Metcalf <calvin.metcalf at state.ma.us>
Date: Sat Jan 3 09:17:21 2015 -0500
update tests for all caps cipher
---
test/index.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/test/index.js b/test/index.js
index 647777d..7c5e998 100644
--- a/test/index.js
+++ b/test/index.js
@@ -478,8 +478,8 @@ incorectPaddingthrows(two);
incorectPaddingDoesNotThrow(two);
test('autopadding false decipher', function (t) {
t.plan(2);
- var mycipher = crypto.createCipher('aes-128-ecb', new Buffer('password'));
- var nodecipher = _crypto.createCipher('aes-128-ecb', new Buffer('password'));
+ var mycipher = crypto.createCipher('AES-128-ECB', new Buffer('password'));
+ var nodecipher = _crypto.createCipher('AES-128-ECB', new Buffer('password'));
var myEnc = mycipher.final();
var nodeEnc = nodecipher.final();
t.equals(myEnc.toString('hex'), nodeEnc.toString('hex'), 'same encryption');
@@ -504,4 +504,4 @@ test('autopadding false cipher throws', function (t) {
t.throws(function () {
nodecipher.final();
}, 'node');
-});
\ No newline at end of file
+});
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browserify-aes.git
More information about the Pkg-javascript-commits
mailing list