Twofish Crypto algorithm

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2006
Posts: 20
Reputation: happy8899 is an unknown quantity at this point 
Solved Threads: 0
happy8899 happy8899 is offline Offline
Newbie Poster

Twofish Crypto algorithm

 
0
  #1
Oct 1st, 2008
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..
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Twofish Crypto algorithm

 
1
  #2
Oct 1st, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 1,860
Reputation: twomers has a spectacular aura about twomers has a spectacular aura about twomers has a spectacular aura about 
Solved Threads: 55
twomers's Avatar
twomers twomers is offline Offline
Posting Virtuoso

Re: Twofish Crypto algorithm

 
0
  #3
Oct 1st, 2008
>> Gee, what more do you want?
A clickable link would be nice. I don't want to have to copy and paste again, Salem!
I blag!?
"Mr Kitty, you have to live in the attic now. Here, write a diary."
I am the Walrus!
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 20
Reputation: happy8899 is an unknown quantity at this point 
Solved Threads: 0
happy8899 happy8899 is offline Offline
Newbie Poster

Re: Twofish Crypto algorithm

 
0
  #4
Oct 2nd, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Twofish Crypto algorithm

 
1
  #5
Oct 2nd, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 20
Reputation: happy8899 is an unknown quantity at this point 
Solved Threads: 0
happy8899 happy8899 is offline Offline
Newbie Poster

Re: Twofish Crypto algorithm

 
0
  #6
Oct 2nd, 2008
Originally Posted by Salem View Post
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!!!
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 20
Reputation: happy8899 is an unknown quantity at this point 
Solved Threads: 0
happy8899 happy8899 is offline Offline
Newbie Poster

Re: Twofish Crypto algorithm

 
0
  #7
Oct 2nd, 2008
Originally Posted by happy8899 View Post
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..
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: Twofish Crypto algorithm

 
0
  #8
Oct 3rd, 2008
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?
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC