Uh oh!
There was an error while loading. Please reload this page.
ghash: add FieldElement - #356
Conversation
makavity
commented
Aug 28, 2026
@tarcieri tried to implement #[inline(always)]fnconvert(x:u128) -> u128{
x.reverse_bits().swap_bytes()}#[inline(always)]fnconvert_block(block:&Block) -> Block{convert(u128::from_le_bytes((*block).into())).to_le_bytes().into()}Because STB spec works in different notation. |
tarcieri
commented
Aug 28, 2026
Heh, I had a half-finished version of this locally too, but we can go with this.
Wait, it uses GHASH, but in little endian? Weird. Unfortunate they didn't use POLYVAL if they wanted little endian. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
makavity
commented
Aug 28, 2026
Yeah, unfortunately :( |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
#355