943,809 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 3370
  • C++ RSS
Oct 1st, 2008
0

Twofish Crypto algorithm

Expand Post »
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..
Reputation Points: 10
Solved Threads: 0
Newbie Poster
happy8899 is offline Offline
24 posts
since Aug 2006
Oct 1st, 2008
1

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?
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Oct 1st, 2008
0

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!
Reputation Points: 453
Solved Threads: 57
Posting Virtuoso
twomers is offline Offline
1,873 posts
since May 2007
Oct 2nd, 2008
0

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
happy8899 is offline Offline
24 posts
since Aug 2006
Oct 2nd, 2008
1

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.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Oct 2nd, 2008
0

Re: Twofish Crypto algorithm

Click to Expand / Collapse  Quote originally posted by Salem ...
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!!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
happy8899 is offline Offline
24 posts
since Aug 2006
Oct 2nd, 2008
0

Re: Twofish Crypto algorithm

Click to Expand / Collapse  Quote originally posted by happy8899 ...
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..
Reputation Points: 10
Solved Threads: 0
Newbie Poster
happy8899 is offline Offline
24 posts
since Aug 2006
Oct 3rd, 2008
0

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?
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: linked list
Next Thread in C++ Forum Timeline: how to identify which OS I am using





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC