aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/templates')
-rw-r--r--os/hal/templates/hal_crypto_lld.h23
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