From 9e23b94db39cd834b6fefd4835535e42a02d830c Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Tue, 25 Feb 2014 14:55:29 +0100 Subject: [PATCH] clean wroning api usage in cfb --- src/crypto/cfb.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crypto/cfb.js b/src/crypto/cfb.js index 3f556ec3..e10dc0e6 100644 --- a/src/crypto/cfb.js +++ b/src/crypto/cfb.js @@ -96,7 +96,7 @@ module.exports = { } } // 8. FR is encrypted to produce FRE. - FRE = cipherfn.encrypt(FR, key); + FRE = cipherfn.encrypt(FR); if (resync) { // 9. FRE is xored with the first 8 octets of the given plaintext, now @@ -224,13 +224,13 @@ module.exports = { iblock[i] = 0; } - iblock = cipherfn.encrypt(iblock, key); + iblock = cipherfn.encrypt(iblock); for (i = 0; i < block_size; i++) { ablock[i] = ciphertext.charCodeAt(i); iblock[i] ^= ablock[i]; } - ablock = cipherfn.encrypt(ablock, key); + ablock = cipherfn.encrypt(ablock); // test check octets if (iblock[block_size - 2] != (ablock[0] ^ ciphertext.charCodeAt(block_size)) || iblock[block_size - 1] != (ablock[