bitwiseshiftleft / sjcl

Stanford Javascript Crypto Library
http://bitwiseshiftleft.github.com/sjcl/
Other
7.19k stars 988 forks source link

Minified version does not work with CBC #357

Open petero-dk opened 6 years ago

petero-dk commented 6 years ago

The minified version changes the name of the _xor4 function (since it is private) and thus the CBC library imported separately fails.

https://github.com/bitwiseshiftleft/sjcl/blob/4fc74ff92fd6b836cc596cc0ee940ef6cc8db7c6/core/bitArray.js#L185

https://github.com/bitwiseshiftleft/sjcl/blob/4fc74ff92fd6b836cc596cc0ee940ef6cc8db7c6/core/cbc.js#L42-L43