From d96d3fbf325393f50ac10ffd92258d47dc7e3cc7 Mon Sep 17 00:00:00 2001 From: Theodore Ateba Date: Tue, 12 Jun 2018 11:55:00 +0000 Subject: 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 --- os/hal/include/hal_crypto.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'os/hal/include') 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 } -- cgit v1.2.3