Twofish is unpatented, and the source code is uncopyrighted and license-free
Gee, what more do you want?
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
>> Gee, what more do you want?
A clickable link would be nice. I don't want to have to copy and paste again, Salem!
twomers
Posting Virtuoso
1,877 posts since May 2007
Reputation Points: 453
Solved Threads: 57
If you can't figure out from the first zip file that twofish.c is the algorithm, and tst2fish.c is a test wrapper with all the I/O you could ever need for it, then everything you plan seems beyond you.
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
Since that was the reference implementation, meaning it's written for clarity rather than performance, then I guess you're stuck.
IMO, you need to spend more time looking at the code you have, and really trying to understand how it works. If something seems especially complicated, try rewriting it, and then use the test suite to make sure it still works.
This is weeks of work, not come back within a day "is there something simpler".
> Which part shuld be parallelize.
I dunno, it's your idea - what did you have in mind when you started this plan in motion?
My guess would be to look for outer-most for loops which operate on independent blocks of data. If twofish uses one block as part of the seed for the next block, then I don't think this idea will work out. Again, do you know how twofish works for this to even be possible?
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953