summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-11-29 05:50:28 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-11-29 05:50:28 +0100
commit30016f8c828ae2d8191d5490cf599bbf006d024b (patch)
tree0bdbde4e00d51e09aca3f0e083511dd4b558a78d /src
parent61349d3d273aa23935b0c413c5885005db2669db (diff)
downloadfastd-30016f8c828ae2d8191d5490cf599bbf006d024b.tar
fastd-30016f8c828ae2d8191d5490cf599bbf006d024b.zip
HKDF: add a forgotten const qualifier
Diffstat (limited to 'src')
-rw-r--r--src/hkdf_sha256.c2
-rw-r--r--src/hkdf_sha256.h2
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 <string.h>
-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_ */