baseConvert() & 32-bit ops
Mark Brownell
gizmotron at earthlink.net
Mon Jun 23 14:45:00 EDT 2003
On Monday, June 23, 2003, at 11:45 AM, Dar Scott wrote:
>
> On Monday, June 23, 2003, at 12:19 PM, Mark Brownell wrote:
>
>> the -1 is in regards to the bitAnd part of the f function's S-boxes.
>>
>>>> f = S1[a] + S2[b]
>>>> f = bitXor( f , S3[c] )
>>>> f = bitAnd( f + S4[d], -1 )
>
> Yeah, replace that last bitAnd with a mod 2^32.
>
>> I'm tempted to get that highly recommended book that you referenced.
>
> You will see that my final one line for above turns out to read just
> like the line in the book.
>
> If you have a reference you prefer, I'm willing to let you buy me a
> copy of that! But if you don't do that and you can afford it, get
> Schneier. It will help in clarifying your thoughts and in
> communicating with people like me. It covers Blowfish, block ciphers
> in general, and Freistel networks in general. It even has C code for
> Blowfish.
>
> Dar Scott
Hi Dar,
I wish I was on this list long enough to know how you might take a joke.
> If you have a reference you prefer, I'm willing to let you buy me a
> copy of that!
My normal response would be that I would be tempted to get you a book
on how to dress for major geeks. :-) Only your friends would know for
sure. Anyway...
You have been so helpful that I'm going to give you a free publisher's
addition of MTML 3.0 e-Book and Article reader when I get it done. It
supports the free to distribute MTML 3.0 Study tool e-Book and Article
reader. I hope that you will use it to publish a book on using Rev. If
you are to busy to learn a new markup-language then I would be happy to
configure any book you wish to write for publishing in this format.
I'm so jazzed about the speed modifications that I might be able to
skip using Valentina as a back end for publishing in the study tool
format. A faster encryption process was a user issue. I already have a
string based database engine (think XML database with a pull parser for
selective query) for MTML that is fast enough even for books that are
larger than 2 megabytes. (a 300 page 6 x 9 paperback tends to run
around a little less than 400 kbts.)
Thanks for your help,
Mark
More information about the use-livecode
mailing list