4 Sep
2012
4 Sep
'12
9:25 p.m.
Hello everyone and Timo in particular,
about a year ago I implemented a SHA-1 variant of the HMAC(-MD5) present in Dovecot. I had always disliked this a bit, because it replicates a lot of code. This patch generalizes the HMAC function to take a hash_method struct as parameter, and changes existing code which uses the "old" HMAC function to use this new one.
I'm not really sure this is actually a good idea, but I still felt I should provide the code in case you would want to merge it upstream.
Attached is the patch as a hg export based on the revision of dovecot-2.2 current at the time of writing.
Regards, Florian Zeitz