[rtems commit] bsp/atsam: Add const qualifier to AES_SetInput()
Sebastian Huber
sebh at rtems.org
Thu Oct 18 05:23:47 UTC 2018
Module: rtems
Branch: master
Commit: 68799dac67ba3da74a406bcef28fb710885f073c
Changeset: http://git.rtems.org/rtems/commit/?id=68799dac67ba3da74a406bcef28fb710885f073c
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Oct 18 07:22:44 2018 +0200
bsp/atsam: Add const qualifier to AES_SetInput()
---
bsps/arm/atsam/contrib/libraries/libchip/source/aes.c | 2 +-
bsps/arm/atsam/include/libchip/include/aes.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/bsps/arm/atsam/contrib/libraries/libchip/source/aes.c b/bsps/arm/atsam/contrib/libraries/libchip/source/aes.c
index 0cba25d..010e7cf 100644
--- a/bsps/arm/atsam/contrib/libraries/libchip/source/aes.c
+++ b/bsps/arm/atsam/contrib/libraries/libchip/source/aes.c
@@ -178,7 +178,7 @@ void AES_WriteKey(const uint32_t *pKey, uint32_t keyLength)
* used for encryption/decryption.
* \param data Pointer to the 16-bytes data to cipher/decipher.
*/
-void AES_SetInput(uint32_t *data)
+void AES_SetInput(const uint32_t *data)
{
uint8_t i;
diff --git a/bsps/arm/atsam/include/libchip/include/aes.h b/bsps/arm/atsam/include/libchip/include/aes.h
index 1fca479..9efc654 100644
--- a/bsps/arm/atsam/include/libchip/include/aes.h
+++ b/bsps/arm/atsam/include/libchip/include/aes.h
@@ -54,7 +54,7 @@ extern void AES_EnableIt(uint32_t sources);
extern void AES_DisableIt(uint32_t sources);
extern uint32_t AES_GetStatus(void);
extern void AES_WriteKey(const uint32_t *pKey, uint32_t keyLength);
-extern void AES_SetInput(uint32_t *data);
+extern void AES_SetInput(const uint32_t *data);
extern void AES_GetOutput(uint32_t *data);
extern void AES_SetVector(const uint32_t *pVector);
extern void AES_SetAadLen(uint32_t len);
More information about the vc
mailing list