aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include/hal_crypto.h
diff options
context:
space:
mode:
authorTheodore Ateba <tf.ateba@gmail.com>2018-06-12 11:55:00 +0000
committerTheodore Ateba <tf.ateba@gmail.com>2018-06-12 11:55:00 +0000
commitd96d3fbf325393f50ac10ffd92258d47dc7e3cc7 (patch)
tree0cc7b75175151a2d594bbd58ce93d8c07304102f /os/hal/include/hal_crypto.h
parent474bc51a14c162376e2c191bf2c92abd9b4b52a0 (diff)
downloadChibiOS-d96d3fbf325393f50ac10ffd92258d47dc7e3cc7.tar.gz
ChibiOS-d96d3fbf325393f50ac10ffd92258d47dc7e3cc7.tar.bz2
ChibiOS-d96d3fbf325393f50ac10ffd92258d47dc7e3cc7.zip
Add conditional compilation to resolve the compilation error (error: unknown type name)
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12087 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/include/hal_crypto.h')
-rw-r--r--os/hal/include/hal_crypto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/os/hal/include/hal_crypto.h b/os/hal/include/hal_crypto.h
index 41a4f031e..f29d314b3 100644
--- a/os/hal/include/hal_crypto.h
+++ b/os/hal/include/hal_crypto.h
@@ -341,6 +341,7 @@ extern "C" {
size_t size, const uint8_t *in);
cryerror_t crySHA512Final(CRYDriver *cryp, SHA512Context *sha512ctxp,
uint8_t *out);
+#if (CRY_LLD_SUPPORTS_HMAC_SHA256 == TRUE) || defined(__DOXYGEN__)
cryerror_t cryHMACSHA256Init(CRYDriver *cryp,
HMACSHA256Context *hmacsha256ctxp);
cryerror_t cryHMACSHA256Update(CRYDriver *cryp,
@@ -350,6 +351,8 @@ extern "C" {
cryerror_t cryHMACSHA256Final(CRYDriver *cryp,
HMACSHA256Context *hmacsha256ctxp,
uint8_t *out);
+#endif /* CRY_LLD_SUPPORTS_HMAC_SHA256 */
+#if (CRY_LLD_SUPPORTS_HMAC_SHA512 == TRUE) || defined(__DOXYGEN__)
cryerror_t cryHMACSHA512Init(CRYDriver *cryp,
HMACSHA512Context *hmacsha512ctxp);
cryerror_t cryHMACSHA512Update(CRYDriver *cryp,
@@ -359,6 +362,7 @@ extern "C" {
cryerror_t cryHMACSHA512Final(CRYDriver *cryp,
HMACSHA512Context *hmacsha512ctxp,
uint8_t *out);
+#endif /* CRY_LLD_SUPPORTS_HMAC_SHA512 */
cryerror_t cryTRNG(CRYDriver *cryp, uint8_t *out);
#ifdef __cplusplus
}