nisse@lysator.liu.se (Niels Möller) writes:
- Complete the dsa reorg (I'd appreciate all comments on that).
Not much comments on these issues. I'm now leaning towards a split into dsa.h with the new interface (and unchanged pieces, like struct dsa_signature), and a dsa-compat.h, with the old, deprecated, interface. Both could be included, except that the meaning of the dsa_generate_keypair symbol will change with dsa-compat.h.
- Make the nettle_cipher abstraction use a const context argument for encrypt and decrypt.
In the mean time, I've done this. There are two typedefs, nettle_cipher_func (new, const ctx, used for the block ciphers), and nettle_crypt_func (unchanged, used for aead algorithms).
For the benchmark, I represent the stream ciphers (arcfour, salsa20, chacha) as nettle_aead structs, where the update and digest methods are NULL (and also set_nonce NULL, in the case of arcfour). Maybe that representation would make sense also for a public api, but I'll not add that now.
Regards, /Niels