emile: API break, rename sha1 to hmac_sha1, introduce real sha1.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Mon, 29 Aug 2016 18:59:43 +0000 (15:59 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Tue, 30 Aug 2016 03:35:17 +0000 (00:35 -0300)
commitd8caade348b0aa5c43d048934c13565da9519a6c
tree9072a4603e2a4408aa87667af0bd22cb22607b40
parent5b8315aeffb6a568d0b70441a2d05f6de2bf8fe1
emile: API break, rename sha1 to hmac_sha1, introduce real sha1.

emile_binbuf_sha1() was actually doing HMAC version using the given
key. This doesn't work when all you need is just the SHA1 of the input
data.

Then rename emile_binbuf_sha1() to emile_binbuf_hmac_sha1() and
introduce a new version without key/keylen.

This API was marked as BETA and no real users in the codebase, then it
shouldn't cause us problems.
src/lib/emile/emile_cipher.c
src/lib/emile/emile_cipher.h
src/lib/emile/emile_cipher_gnutls.c
src/lib/emile/emile_cipher_openssl.c
src/lib/emile/emile_main.c