summaryrefslogtreecommitdiffstats
path: root/src/hkdf_sha256.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-01-27 16:50:00 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-01-27 16:50:00 +0100
commit04beb6dc3ca878aab48f283c1dc6699ca6a8a27b (patch)
tree0a20683c76645e69b7236355df634fdd32842766 /src/hkdf_sha256.h
parentbb0235f7d8db0c0ea814118593da973609352089 (diff)
downloadfastd-04beb6dc3ca878aab48f283c1dc6699ca6a8a27b.tar
fastd-04beb6dc3ca878aab48f283c1dc6699ca6a8a27b.zip
Add an aligned uint8_t type data_t and use it to ensure the alignment of various buffers on the stack
Diffstat (limited to 'src/hkdf_sha256.h')
-rw-r--r--src/hkdf_sha256.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hkdf_sha256.h b/src/hkdf_sha256.h
index 4da2f5b..97af3a6 100644
--- a/src/hkdf_sha256.h
+++ b/src/hkdf_sha256.h
@@ -28,12 +28,13 @@
#define _FASTD_HKDF_SHA256_H_
#include "sha256.h"
+#include "types.h"
static inline void fastd_hkdf_sha256_extract(fastd_sha256_t *out, const uint32_t salt[FASTD_HMACSHA256_KEY_WORDS], const uint32_t *in, size_t len) {
fastd_hmacsha256(out, salt, in, len);
}
-void fastd_hkdf_sha256_expand(fastd_sha256_t *out, size_t blocks, const 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 data_t *info, size_t infolen);
#endif /* _FASTD_HKDF_SHA256_H_ */