Hello,

Le 2021-03-07 à 10 h 26, Niels Möller a écrit :

Hmm. Maybe better to define an optional swap operation. Like

Thanks a lot for that, I wouldn't be able to come up with it by myself...

> The reason it doesn't work is the type of R. R is now an unaligned
> uint8_t *. *(R + (i * 8)) (the same as R[i*8]) is an uint8_t, not an
> uint64_t.

I forgot to check the types, thanks for the explanation!

I've updated the code with the new bswap_if_le and removed the commented code.

/Nicolas

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to