From 30016f8c828ae2d8191d5490cf599bbf006d024b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 29 Nov 2013 05:50:28 +0100 Subject: HKDF: add a forgotten const qualifier --- src/hkdf_sha256.c | 2 +- src/hkdf_sha256.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hkdf_sha256.c b/src/hkdf_sha256.c index 26568f9..854cb86 100644 --- a/src/hkdf_sha256.c +++ b/src/hkdf_sha256.c @@ -29,7 +29,7 @@ #include -void fastd_hkdf_sha256_expand(fastd_sha256_t *out, size_t blocks, fastd_sha256_t *prk, const uint8_t *info, size_t infolen) { +void fastd_hkdf_sha256_expand(fastd_sha256_t *out, size_t blocks, const fastd_sha256_t *prk, const uint8_t *info, size_t infolen) { if (!blocks) return; diff --git a/src/hkdf_sha256.h b/src/hkdf_sha256.h index 830d0aa..4da2f5b 100644 --- a/src/hkdf_sha256.h +++ b/src/hkdf_sha256.h @@ -34,6 +34,6 @@ static inline void fastd_hkdf_sha256_extract(fastd_sha256_t *out, const uint32_t fastd_hmacsha256(out, salt, in, len); } -void fastd_hkdf_sha256_expand(fastd_sha256_t *out, size_t blocks, fastd_sha256_t *prk, const uint8_t *info, size_t infolen); +void fastd_hkdf_sha256_expand(fastd_sha256_t *out, size_t blocks, const fastd_sha256_t *prk, const uint8_t *info, size_t infolen); #endif /* _FASTD_HKDF_SHA256_H_ */ -- cgit v1.2.3