yashprit / crypto-js

Automatically exported from code.google.com/p/crypto-js
0 stars 0 forks source link

TwoFish implementation for CryptoJS #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I have ported an implementation of the TwoFish algorithm from BouncyCastle to 
CryptoJS here:

https://github.com/mitchellrj/KeePassJS/blob/master/bouncycastle/twofish.js

It is under the MIT license, so if this fits with your current New BSD license, 
please feel free to include it in your next release.

Original issue reported on code.google.com by richard....@gmail.com on 18 Sep 2012 at 9:22

GoogleCodeExporter commented 9 years ago

Original comment by Jeff.Mott.OR on 18 Sep 2012 at 9:43

GoogleCodeExporter commented 9 years ago
how to implementatin on add-ons mozilla firefox?

Original comment by riza.arm...@gmail.com on 14 Aug 2013 at 2:24

GoogleCodeExporter commented 9 years ago
Ok, there is a bug in your version

k64Cnt = this._key.words.length / 2;

this counts "dead" bytes in the key

you should use something like that:

k64Cnt = this._key.sigBytes / 8;

Original comment by likha...@gmail.com on 7 Dec 2013 at 5:47

GoogleCodeExporter commented 9 years ago
Fixed. Thanks for your feedback!

Original comment by richard....@gmail.com on 9 Dec 2013 at 4:07