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.209 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js
smock-0.1.208 node_modules/webpack/node_modules/node-libs-browser/node_modules/crypto-browserify/node_modules/browserify-aes/modes/cbc.js