aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-09-08 12:54:58 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-09-08 12:54:58 +0000
commitab8cbd8f7c824a3311c1878157e8b6d7721e470d (patch)
treed82a10430b547335fda2e94799e08207d247c170 /os/hal/src
parent2dbd855684b925c7a57982d883abcc9e0ecec10c (diff)
downloadChibiOS-ab8cbd8f7c824a3311c1878157e8b6d7721e470d.tar.gz
ChibiOS-ab8cbd8f7c824a3311c1878157e8b6d7721e470d.tar.bz2
ChibiOS-ab8cbd8f7c824a3311c1878157e8b6d7721e470d.zip
Some changes to the crypto infrastructure.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12252 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/src')
-rw-r--r--os/hal/src/hal_crypto.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/os/hal/src/hal_crypto.c b/os/hal/src/hal_crypto.c
index 7d9461d38..a58cc7bec 100644
--- a/os/hal/src/hal_crypto.c
+++ b/os/hal/src/hal_crypto.c
@@ -149,8 +149,7 @@ cryerror_t cryLoadTransientKey(CRYDriver *cryp,
const uint8_t *keyp) {
cryerror_t err;
- osalDbgCheck((cryp != NULL) && (size <= HAL_CRY_MAX_KEY_SIZE) &&
- (keyp != NULL));
+ osalDbgCheck((cryp != NULL) && (keyp != NULL));
#if HAL_CRY_ENFORCE_FALLBACK == FALSE
@@ -166,12 +165,6 @@ cryerror_t cryLoadTransientKey(CRYDriver *cryp,
}
#endif
- if (err == CRY_NOERROR) {
- /* Storing the transient key info.*/
- cryp->key0_type = algorithm;
- cryp->key0_size = size;
- }
-
return err;
}