Sha256: 0530f849c0a6f3b48204ee2336a64514d7d6abb8a25efdd92e269b670fb965cd

Contents?: true

Size: 342 Bytes

Versions: 62

Compression:

Stored size: 342 Bytes

Contents

var xor = require('../xor');
exports.encrypt = function (self, block) {
  var data = xor(block, self._prev);
  self._prev = self._cipher.encryptBlock(data);
  return self._prev;
};
exports.decrypt = function (self, block) {
  var pad = self._prev;
  self._prev = block;
  var out = self._cipher.decryptBlock(block);
  return xor(out, pad);
};

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
smock-0.1.246 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.245 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.244 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.243 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.242 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.241 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.240 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.239 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.2 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.1 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.238 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.237 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.236 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.235 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.234 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.233 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.232 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.231 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.230 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.229 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js