
10 Dec
2024
10 Dec
'24
12:26 a.m.
Zach Laine wrote:
Why the discrepancy between unsigned char const * in the hash algorithm ctor, and void const * in update()?
The discrepancy is because the both used to take `unsigned char const*`, and then I changed `update` to `void const*` to avoid all the reinterpret casts, but didn't change the constructor. However, the key often comes in char[] or string form, especially when using HMAC to interact with existing APIs, so I think that the constructor is also going to be changed soon to take `void const*` to match.