diff options
author | Theodore Ateba <tf.ateba@gmail.com> | 2018-06-12 11:55:00 +0000 |
---|---|---|
committer | Theodore Ateba <tf.ateba@gmail.com> | 2018-06-12 11:55:00 +0000 |
commit | d96d3fbf325393f50ac10ffd92258d47dc7e3cc7 (patch) | |
tree | 0cc7b75175151a2d594bbd58ce93d8c07304102f /os/hal/include | |
parent | 474bc51a14c162376e2c191bf2c92abd9b4b52a0 (diff) | |
download | ChibiOS-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')
-rw-r--r-- | os/hal/include/hal_crypto.h | 4 |
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
}
|