Re: Make things interesting
From: Russ Lyttle (lyttlec_at_earthlink.net)
Date: 06/28/03
- Next message: CryptWolf: "Re: encryption key methods."
- Previous message: Henrick Hellström: "Re: Question on Symmetric encryptions algorithms:"
- In reply to: Tom St Denis: "Re: Make things interesting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 28 Jun 2003 00:10:40 GMT
Tom St Denis wrote:
> Russ Lyttle wrote:
>> Tom St Denis wrote:
>> <<SNIP for space>>
>> Perhaps Tom, contact, and others could give the following code a try. Its
>> a bit long, but I think it would be interesting to see how it runs on
>> your tests. It should be a fairly faithful reproduction of Algorithm M
>> and might turn into something useful.
>
> Yours uses a LCG as the underlying PRNG. This has been proven to be
> weak. No joy.
>
> Tom
Correct. But the post is only intended to test the code technique. i.e. are
the results at least as good as the PRNG? I see lots of code that tries
cute tricks and results in less secure output than simple by-the-book
implementations. I'm trying a lot of cute tricks in the sample. It would be
nice to compare the stats of the output to the stats of the base PRNG.
Notice that the PRNG is easily replacable with anything you wish. In real
code, I would use two different PRNGs, one for X and another for Y. It
would be advisable to have relative prime periods for the PRNGs if
possible. In all, there is a big jump from the code posted to working code.
Question is, is the effort worth while?
BTW, the runtime cost for filling the S array is 0. Everything is calculated
at compile time. g++ really bogs down if the S array gets much bigger than
1024. I'm not a big fan of C++ templates, but having the compiler do that
much computation is interesting!
-- Russ Lyttle Not Powered by ActiveX
- Next message: CryptWolf: "Re: encryption key methods."
- Previous message: Henrick Hellström: "Re: Question on Symmetric encryptions algorithms:"
- In reply to: Tom St Denis: "Re: Make things interesting"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|