Re: Idle curiosity (ieee bitorder)
- From: "Tom St Denis" <tomstdenis@xxxxxxxxx>
- Date: 29 Jan 2006 07:12:58 -0800
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
.
- Follow-Ups:
- REPOST: Re: Idle curiosity (ieee bitorder)
- From: BRG
- Re: Idle curiosity (ieee bitorder)
- From: BRG
- REPOST: Re: Idle curiosity (ieee bitorder)
- References:
- Idle curiosity (ieee bitorder)
- From: Tom St Denis
- Re: Idle curiosity (ieee bitorder)
- From: BRG
- Idle curiosity (ieee bitorder)
- Prev by Date: REPOST: Re: Idle curiosity (ieee bitorder)
- Next by Date: REPOST: Re: Idle curiosity (ieee bitorder)
- Previous by thread: Re: Idle curiosity (ieee bitorder)
- Next by thread: Re: Idle curiosity (ieee bitorder)
- Index(es):
Relevant Pages
|
|