summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-02-22 09:01:10 +0100
committerStefan Metzmacher <metze@samba.org>2012-02-27 12:51:33 +0100
commit229128f7e14b215787eb8d80851e953f324b4012 (patch)
tree05ef519e55db063570a749f82faf0a3eb32a3ab6
parent8a0e420d4c5c48f49ec15fb91258f8a569ed1a63 (diff)
downloadsamba-229128f7e14b215787eb8d80851e953f324b4012.tar.gz
samba-229128f7e14b215787eb8d80851e953f324b4012.tar.bz2
samba-229128f7e14b215787eb8d80851e953f324b4012.zip
lib/crypto: fix hmac_sha256_final() prototype
metze
-rw-r--r--lib/crypto/hmacsha256.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/crypto/hmacsha256.h b/lib/crypto/hmacsha256.h
index 8960c636c1..d9ecac7af4 100644
--- a/lib/crypto/hmacsha256.h
+++ b/lib/crypto/hmacsha256.h
@@ -33,6 +33,6 @@ struct HMACSHA256Context {
void hmac_sha256_init(const uint8_t *key, size_t key_len, struct HMACSHA256Context *ctx);
void hmac_sha256_update(const uint8_t *data, size_t data_len, struct HMACSHA256Context *ctx);
-void hmac_sha256_final(uint8_t digest[20], struct HMACSHA256Context *ctx);
+void hmac_sha256_final(uint8_t digest[SHA256_DIGEST_LENGTH], struct HMACSHA256Context *ctx);
#endif /* _HMAC_SHA256_H */