From 282f50256531ffee5f9f5baf8d275fb64464769d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 19 Dec 2018 11:26:37 +0000 Subject: Crypto driver changes, removed TRNG. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12477 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/templates/hal_crypto_lld.c | 32 -------------------------------- 1 file changed, 32 deletions(-) (limited to 'os/hal/templates/hal_crypto_lld.c') diff --git a/os/hal/templates/hal_crypto_lld.c b/os/hal/templates/hal_crypto_lld.c index 0d1656787..b079bd064 100644 --- a/os/hal/templates/hal_crypto_lld.c +++ b/os/hal/templates/hal_crypto_lld.c @@ -1144,7 +1144,6 @@ cryerror_t cry_lld_SHA512_final(CRYDriver *cryp, SHA512Context *sha512ctxp, #if (CRY_LLD_SUPPORTS_HMAC_SHA256 == TRUE) || defined(__DOXYGEN__) /** * @brief Hash initialization using HMAC_SHA256. - * @note Use of this algorithm is not recommended because proven weak. * * @param[in] cryp pointer to the @p CRYDriver object * @param[out] hmacsha256ctxp pointer to a HMAC_SHA256 context to be @@ -1169,7 +1168,6 @@ cryerror_t cry_lld_HMACSHA256_init(CRYDriver *cryp, /** * @brief Hash update using HMAC. - * @note Use of this algorithm is not recommended because proven weak. * * @param[in] cryp pointer to the @p CRYDriver object * @param[in] hmacsha256ctxp pointer to a HMAC_SHA256 context @@ -1199,7 +1197,6 @@ cryerror_t cry_lld_HMACSHA256_update(CRYDriver *cryp, /** * @brief Hash finalization using HMAC. - * @note Use of this algorithm is not recommended because proven weak. * * @param[in] cryp pointer to the @p CRYDriver object * @param[in] hmacsha256ctxp pointer to a HMAC_SHA256 context @@ -1228,7 +1225,6 @@ cryerror_t cry_lld_HMACSHA256_final(CRYDriver *cryp, #if (CRY_LLD_SUPPORTS_HMAC_SHA512 == TRUE) || defined(__DOXYGEN__) /** * @brief Hash initialization using HMAC_SHA512. - * @note Use of this algorithm is not recommended because proven weak. * * @param[in] cryp pointer to the @p CRYDriver object * @param[out] hmacsha512ctxp pointer to a HMAC_SHA512 context to be @@ -1253,7 +1249,6 @@ cryerror_t cry_lld_HMACSHA512_init(CRYDriver *cryp, /** * @brief Hash update using HMAC. - * @note Use of this algorithm is not recommended because proven weak. * * @param[in] cryp pointer to the @p CRYDriver object * @param[in] hmacsha512ctxp pointer to a HMAC_SHA512 context @@ -1283,7 +1278,6 @@ cryerror_t cry_lld_HMACSHA512_update(CRYDriver *cryp, /** * @brief Hash finalization using HMAC. - * @note Use of this algorithm is not recommended because proven weak. * * @param[in] cryp pointer to the @p CRYDriver object * @param[in] hmacsha512ctxp pointer to a HMAC_SHA512 context @@ -1309,32 +1303,6 @@ cryerror_t cry_lld_HMACSHA512_final(CRYDriver *cryp, } #endif -#if (CRY_LLD_SUPPORTS_TRNG == TRUE) || defined(__DOXYGEN__) -/** - * @brief True random numbers generator. - * - * @param[in] cryp pointer to the @p CRYDriver object - * @param[in] size size of output buffer - * @param[out] out output buffer - * @return The operation status. - * @retval CRY_NOERROR if the operation succeeded. - * @retval CRY_ERR_INV_ALGO if the operation is unsupported on this - * device instance. - * @retval CRY_ERR_OP_FAILURE if the operation failed, implementation - * dependent. - * - * @notapi - */ -cryerror_t cry_lld_TRNG(CRYDriver *cryp, size_t size, uint8_t *out) { - - (void)cryp; - (void)size; - (void)out; - - return CRY_ERR_INV_ALGO; -} -#endif - #endif /* HAL_USE_CRY == TRUE */ /** @} */ -- cgit v1.2.3