aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/include
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-06-13 08:17:40 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-06-13 08:17:40 +0000
commitad0f9349ae74976f054fc0aba35c0ec82c2837c8 (patch)
tree3af5a400146cf9d8d96218661610cb5f911b5288 /os/hal/include
parent6b10290a420ae684c602f02e1f440b99e8f7b420 (diff)
downloadChibiOS-ad0f9349ae74976f054fc0aba35c0ec82c2837c8.tar.gz
ChibiOS-ad0f9349ae74976f054fc0aba35c0ec82c2837c8.tar.bz2
ChibiOS-ad0f9349ae74976f054fc0aba35c0ec82c2837c8.zip
Added more conditionals to CRY driver. Removed conditionals from high level functions, those functions are not meant to be excluded.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12092 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/include')
-rw-r--r--os/hal/include/hal_crypto.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/os/hal/include/hal_crypto.h b/os/hal/include/hal_crypto.h
index 4152aeb2b..a31dbcd8c 100644
--- a/os/hal/include/hal_crypto.h
+++ b/os/hal/include/hal_crypto.h
@@ -99,7 +99,7 @@ typedef enum {
CRY_ERR_INV_KEY_SIZE = 2, /**< Invalid key size. */
CRY_ERR_INV_KEY_TYPE = 3, /**< Invalid key type. */
CRY_ERR_INV_KEY_ID = 4, /**< Invalid key identifier. */
- CRY_ERR_OPERATION_FAILURE = 5 /**< Requested operation failed.*/
+ CRY_ERR_OP_FAILURE = 5 /**< Requested operation failed.*/
} cryerror_t;
/**
@@ -342,7 +342,6 @@ 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,
@@ -352,8 +351,6 @@ 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,
@@ -363,7 +360,6 @@ 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
}