Subject Re: [Firebird-general] Security paranoia
Author Lester Caine
Dimitry Sibiryakov wrote:
> 1) Security algorithm must compare two array of bytes one-by-one;
> 2) Comparsion must stop as soon as any difference found;

I think it's about time I actually looked at the machine code here.
When I moved from 16 to 32bit processors comparing 32bits of data at a time
halved the processing time, but that was not on 'intel' processors. I have
always wondered where we would be today if IBM and chosen a real processor for
the PC rather than a bargain bucket one. The Texas and Nat Semi processors were
indefinitely better back then :(
I must say that I did assume that moving from 32 to 64 bit processors we would
be moving from comparing 4 bytes at a time to 8. Is that not actually the case?

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk