bitcore-lib-zcash/lib
Ryan X. Charles 65ab3a663a fix string/buffer sjcl issue
...by using sjcl.mode.cbc.encrypt/decrypt rather than sjcl.encrypt/decrypt. The
difference is that the sjcl.encrypt/decrypt functions are really convenience
methods designed to encrypt and decrypt strings, but don't play nice with
binary data, as revealed in the tests in this commit and the previous commit.
Basically, if you use them to encrypt and decrypt binary data as a string, it
will return the wrong result or an error.

The solution is to use the block cipher directly, in this case sjcl.mode.cbc.
This also has the advantage of fewer format conversions - no converting to
base64 and JSON strings. This makes things faster. Also, it is actually correct
unlike the previous method.
2014-07-09 16:25:48 -07:00
..
browser fix string/buffer sjcl issue 2014-07-09 16:25:48 -07:00
common ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Address.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Armory.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
BIP39.js add check function for BIP39 2014-07-01 14:00:08 -07:00
BIP39WordlistEn.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Base58.js Fix checksum comparison error. Closes #402 2014-07-03 09:17:54 -07:00
Block.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Bloom.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Connection.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Curve.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Deserialize.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
ECIES.js use SJCL AES to get ECIES working in the browser 2014-06-03 19:03:50 -07:00
Electrum.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
HierarchicalKey.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Key.js Replace process.versions tests by browserify's package.json browser field. Fixes #329 2014-05-07 14:14:10 +08:00
Message.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Opcode.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
PayPro.js add sign/verify with pki_type SIN 2014-07-03 15:35:32 -07:00
Peer.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
PeerManager.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Point.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
PrivateKey.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
RpcClient.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
SIN.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
SINKey.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Script.js remove dead code 2014-07-02 01:22:18 +01:00
ScriptInterpreter.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
SecureRandom.js Replace process.versions tests by browserify's package.json browser field. Fixes #329 2014-05-07 14:14:10 +08:00
Sign.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Transaction.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
TransactionBuilder.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
Wallet.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
WalletKey.js ran js-beautify on all bitcore source 2014-06-23 10:57:02 -07:00
sjcl.js fix sjcl issue on npm install 2014-06-06 11:49:58 -07:00