DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C++ (http://www.daniweb.com/forums/forum8.html)
-   -   Twofish Crypto algorithm (http://www.daniweb.com/forums/thread148536.html)

happy8899 Oct 1st, 2008 12:48 pm
Twofish Crypto algorithm
 
Can anyone help me by telling me where to find twofish source code other than from scheinier website?? I just want to find a sample source code of encrytion and decrytion using twofish algorithm. Thx a lot for the help..

Salem Oct 1st, 2008 1:48 pm
Re: Twofish Crypto algorithm
 
Quote:

Originally Posted by www.schneier.com/twofish.html
Twofish is unpatented, and the source code is uncopyrighted and license-free

Gee, what more do you want?

twomers Oct 1st, 2008 1:57 pm
Re: Twofish Crypto algorithm
 
>> Gee, what more do you want?
A clickable link would be nice. I don't want to have to copy and paste again, Salem!

happy8899 Oct 2nd, 2008 12:56 am
Re: Twofish Crypto algorithm
 
I want a source code which can be input with plaintext and output with ciphertext. The twofish source code in scheneier website do not provide an input but come out with a lot of txt file. I just want to parallelize the twofish source code with openmp. How for me to use the twofish code in schneier website cause it seems like do not provide any input of plaintext.

Salem Oct 2nd, 2008 1:47 am
Re: Twofish Crypto algorithm
 
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.

happy8899 Oct 2nd, 2008 5:26 am
Re: Twofish Crypto algorithm
 
Quote:

Originally Posted by Salem (Post 703224)
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.

Thx a lot Salem!!!

happy8899 Oct 2nd, 2008 10:47 pm
Re: Twofish Crypto algorithm
 
Quote:

Originally Posted by happy8899 (Post 703313)
Thx a lot Salem!!!

It had tried out the code but seems like i m blur of the code. Which part shuld be parallelize. Is there any others code beside this which is simpler..

Salem Oct 3rd, 2008 1:37 am
Re: Twofish Crypto algorithm
 
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?


All times are GMT -4. The time now is 11:28 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC