Closed
Description
Hi, I've been going through tht BLAKE2 code-base and I stumbled onto this thing that bothers me.
Line 144 in bf1b257
Notice how the block is loaded in 32-bit chunks in native-endianness? This seems to correspond to the spec (RFC 7693) at top of page 24 where it says "get little-endian words".
Given that the data being loaded is raw data from the block-buffer, it seems that native-endianness can never be correct. I would guess this mistake is caused by wanting to convert into native-endianness, i.e. properly processing as u32
, but that's a given. The source-buffer is simply interpreted as little-endian by convenient, AFAICT.
Metadata
Metadata
Assignees
Labels
No labels