Dmitry Eremin-Solenikov <dbarysh...@gmail.com> writes: > +union nettle_block8 > +{ > + uint8_t b[8]; > + unsigned long w[8 / sizeof(unsigned long)]; > + uint64_t u64; > +};
The "unsigned long w" seems unneeded (in nettle_block16, it could also be retired; it's from a time when Nettle didn't use uint64_t). Maybe one could do without this union and simply use uint64_t, but then one would need some casts to (uint8_t *). So a union may be clearer. Regards, /Niels -- Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677. Internet email is subject to wholesale government surveillance. _______________________________________________ nettle-bugs mailing list nettle-bugs@lists.lysator.liu.se http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs