Rename buffer to key in hmac_init in crypto backend.

It is key and naming was confusing.
This commit is contained in:
Milan Broz
2018-02-23 10:14:00 +01:00
parent b4fc36ea62
commit dee38e9c0b
6 changed files with 14 additions and 14 deletions

View File

@@ -48,7 +48,7 @@ void crypt_hash_destroy(struct crypt_hash *ctx);
/* HMAC */
int crypt_hmac_size(const char *name);
int crypt_hmac_init(struct crypt_hmac **ctx, const char *name,
const void *buffer, size_t length);
const void *key, size_t key_length);
int crypt_hmac_write(struct crypt_hmac *ctx, const char *buffer, size_t length);
int crypt_hmac_final(struct crypt_hmac *ctx, char *buffer, size_t length);
void crypt_hmac_destroy(struct crypt_hmac *ctx);