From faa3f10780033c09bea25862b4c2c6f168b8f31e Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Wed, 13 Jun 2018 08:26:09 +0000 Subject: Missing dummy structures. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12093 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/include/hal_crypto.h | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/os/hal/include/hal_crypto.h b/os/hal/include/hal_crypto.h index a31dbcd8c..2b0ad6b0e 100644 --- a/os/hal/include/hal_crypto.h +++ b/os/hal/include/hal_crypto.h @@ -177,29 +177,45 @@ struct CRYDriver { #endif #if (HAL_CRY_USE_FALLBACK == FALSE) && (CRY_LLD_SUPPORTS_SHA1 == FALSE) -/* Stub @p SHA1Context structure type declaration. It is not provided by the - LLD and the fallback is not enabled.*/ +/* Stub @p SHA1Context structure type declaration. It is not provided by + the LLD and the fallback is not enabled.*/ typedef struct { uint32_t dummy; } SHA1Context; #endif #if (HAL_CRY_USE_FALLBACK == FALSE) && (CRY_LLD_SUPPORTS_SHA256 == FALSE) -/* Stub @p SHA256Context structure type declaration. It is not provided by the - LLD and the fallback is not enabled.*/ +/* Stub @p SHA256Context structure type declaration. It is not provided by + the LLD and the fallback is not enabled.*/ typedef struct { uint32_t dummy; } SHA256Context; #endif #if (HAL_CRY_USE_FALLBACK == FALSE) && (CRY_LLD_SUPPORTS_SHA512 == FALSE) -/* Stub @p SHA512Context structure type declaration. It is not provided by the - LLD and the fallback is not enabled.*/ +/* Stub @p SHA512Context structure type declaration. It is not provided by + the LLD and the fallback is not enabled.*/ typedef struct { uint32_t dummy; } SHA512Context; #endif +#if (HAL_CRY_USE_FALLBACK == FALSE) && (CRY_LLD_SUPPORTS_HMAC_SHA256 == FALSE) +/* Stub @p HMACSHA256Context structure type declaration. It is not provided by + the LLD and the fallback is not enabled.*/ +typedef struct { + uint32_t dummy; +} HMACSHA256Context; +#endif + +#if (HAL_CRY_USE_FALLBACK == FALSE) && (CRY_LLD_SUPPORTS_HMAC_SHA512 == FALSE) +/* Stub @p HMACSHA512Context structure type declaration. It is not provided by + the LLD and the fallback is not enabled.*/ +typedef struct { + uint32_t dummy; +} HMACSHA512Context; +#endif + /*===========================================================================*/ /* Driver macros. */ /*===========================================================================*/ -- cgit v1.2.3