Re: Idle curiosity (ieee bitorder)



BRG wrote:
> What convention?

I say "do a shift which doubles the value in a register"

is that

x = x >> 1

or

x = x << 1

????

It's really that simple. "rightshift" is their way of writing
"multiply by x" which is typically analogous to multiplying by 2.

So with that in mind for GCM and LRW you have to load the bytes in big
endian and do right shifts to "double" the value. But the first byte
is not the actual MSbyte ...

in normal representation you'd load it in little endian and do a left
shift to double it.

Tom

.



Relevant Pages

  • Re: Idle curiosity (ieee bitorder)
    ... > defines Galois Field multiplication by 'x' as a right shift of the ... > Now if _you_ map the bit sequences onto registers one way round this ... Where this becomes a problem is the byte array is LITTLE ENDIAN. ... So if you want to load say 4 or 8 bytes into a register you have to ...
    (sci.crypt)
  • REPOST: Re: Idle curiosity (ieee bitorder)
    ... > defines Galois Field multiplication by 'x' as a right shift of the ... > Now if _you_ map the bit sequences onto registers one way round this ... Where this becomes a problem is the byte array is LITTLE ENDIAN. ... So if you want to load say 4 or 8 bytes into a register you have to ...
    (sci.crypt)
  • Re: Tai Chi
    ... People have an innate ability to shift force vectors. ... ground or the weight. ... Instead of "holding" the load on the ...
    (rec.martial-arts)
  • Re: Tai Chi
    ... People have an innate ability to shift force vectors. ... the ground or the weight. ... Instead of "holding" the load on the ...
    (rec.martial-arts)
  • Re: AC sine wave: What does increasing the frequency do?
    ... > load current with a non-zero fundamental phase shift, ... > negative equivalent resistance. ...
    (sci.electronics.basics)