-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Aloha!
Joachim Strömbergson wrote:
I can take a shot at the code changes and post patches.
It wasn't really that hard. Patches will follow in two mails. I have not updated the H0 generation scripts used to verify the values (which you have done for SHA-384 and SHA-512). But the test program I've written generates the correct digest for SHA-512 (as baseline) and for SHA-512-224 and SHA-512-256.
The test code etc is available on github: https://github.com/secworks/nettle/tree/master/sha512x
I think it looks a bit ugly to have separat init and digest functions but reuse the update function from sha512. I would prefer to add sha512_224_update() and sha512_256 too but still reuse the context. But since you don't do that for sha384 I guess you prefer it having just init and digest as specific functions.
- -- Med vänlig hälsning, Yours
Joachim Strömbergson - Alltid i harmonisk svängning. ======================================================================== Joachim Strömbergson Secworks AB joachim@secworks.se ========================================================================