Bill Roberts bill.roberts@foss.arm.com writes:
Before, the size of the context structs ranged from 280 bytes for sha3_512 to 352 bytes for sha3_224 and 376 for shake128. After these changes, all variants use the same context struct of 216 bytes. One can then eliminate the different struct sha3_*_ctx, replacing with a single struct sha3_ctx, and similarly only a single sha3_init function. Would it be useful to keep old names as preprocessor aliases? Either by default, or via a separate header nettle/sha3-compat.h?
Default would be my vote.
Pushed these changes, including the compatibility aliases, to a branch trim-sha3-context. I think I'll merge to master soon.
Regards, /Niels