diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-22 13:07:41 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-10-22 13:07:41 +0000 |
commit | 9cbcbc183d7d620448a882ab66aa952a06452c22 (patch) | |
tree | 69ef5078e4762fbe63e9b7759309436147659443 /os/hal/templates | |
parent | dddff7b1f5fd6a56081b8f2af105e6eb05df904f (diff) | |
download | ChibiOS-9cbcbc183d7d620448a882ab66aa952a06452c22.tar.gz ChibiOS-9cbcbc183d7d620448a882ab66aa952a06452c22.tar.bz2 ChibiOS-9cbcbc183d7d620448a882ab66aa952a06452c22.zip |
Added capability for a fall-back crypto implementation.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10874 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates')
-rw-r--r-- | os/hal/templates/hal_crypto_lld.h | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/os/hal/templates/hal_crypto_lld.h b/os/hal/templates/hal_crypto_lld.h index 53046d814..05aa5566d 100644 --- a/os/hal/templates/hal_crypto_lld.h +++ b/os/hal/templates/hal_crypto_lld.h @@ -78,23 +78,6 @@ typedef uint32_t crykey_t; typedef struct CRYDriver CRYDriver;
/**
- * @brief CRY notification callback type.
- *
- * @param[in] cryp pointer to the @p CRYDriver object triggering the
- * callback
- */
-typedef void (*crycallback_t)(CRYDriver *cryp);
-
-/**
- * @brief CRY error callback type.
- *
- * @param[in] cryp pointer to the @p CRYDriver object triggering the
- * callback
- * @param[in] err CRY error code
- */
-typedef void (*cryerrorcallback_t)(CRYDriver *cryp, cryerror_t err);
-
-/**
* @brief Driver configuration structure.
* @note It could be empty on some architectures.
*/
@@ -122,6 +105,12 @@ struct CRYDriver { * @brief Size of transient key.
*/
size_t key0_size;
+#if (HAL_CRY_USE_FALLBACK == TRUE) || defined(__DOXYGEN__)
+ /**
+ * @brief Key buffer for the fall-back implementation.
+ */
+ uint8_t key0_buffer[HAL_CRY_MAX_KEY_SIZE];
+#endif
#if defined(CRY_DRIVER_EXT_FIELDS)
CRY_DRIVER_EXT_FIELDS
#endif
|