aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal
diff options
context:
space:
mode:
authorTheodore Ateba <tf.ateba@gmail.com>2018-09-04 11:50:42 +0000
committerTheodore Ateba <tf.ateba@gmail.com>2018-09-04 11:50:42 +0000
commit1b70b674056fe7a4a94ae37f617c12deee3ea140 (patch)
tree1ffae275dd5c0b8fd12bdd4465794a0b0249ee2a /os/hal
parent5903f8305c335fd449c2a232b248f83691233e46 (diff)
downloadChibiOS-1b70b674056fe7a4a94ae37f617c12deee3ea140.tar.gz
ChibiOS-1b70b674056fe7a4a94ae37f617c12deee3ea140.tar.bz2
ChibiOS-1b70b674056fe7a4a94ae37f617c12deee3ea140.zip
AVR: Correct the indentation on hal_crypto_lld.c file.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12236 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal')
-rw-r--r--os/hal/ports/AVR/XMEGA/LLD/CRYPv1/hal_crypto_lld.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/os/hal/ports/AVR/XMEGA/LLD/CRYPv1/hal_crypto_lld.c b/os/hal/ports/AVR/XMEGA/LLD/CRYPv1/hal_crypto_lld.c
index 6cae213ed..5a9cc59c0 100644
--- a/os/hal/ports/AVR/XMEGA/LLD/CRYPv1/hal_crypto_lld.c
+++ b/os/hal/ports/AVR/XMEGA/LLD/CRYPv1/hal_crypto_lld.c
@@ -189,10 +189,10 @@ void cry_lld_stop(CRYDriver *cryp) {
*
* @notapi
*/
-cryerror_t cry_lld_loadkey(CRYDriver *cryp,
- cryalgorithm_t algorithm,
- size_t size,
- const uint8_t *keyp) {
+cryerror_t cry_lld_loadkey(CRYDriver *cryp,
+ cryalgorithm_t algorithm,
+ size_t size,
+ const uint8_t *keyp) {
uint8_t i;
@@ -237,10 +237,10 @@ cryerror_t cry_lld_loadkey(CRYDriver *cryp,
*
* @notapi
*/
-cryerror_t cry_lld_encrypt_AES(CRYDriver *cryp,
- crykey_t key_id,
- const uint8_t *src,
- uint8_t *dest) {
+cryerror_t cry_lld_encrypt_AES(CRYDriver *cryp,
+ crykey_t key_id,
+ const uint8_t *src,
+ uint8_t *dest) {
uint8_t i;
(void)cryp;
@@ -259,18 +259,18 @@ cryerror_t cry_lld_encrypt_AES(CRYDriver *cryp,
/* Wait the Encryption to finish or an error to occurs. */
do{
- }
- while ((AES.STATUS & (AES_SRIF_bm|AES_ERROR_bm)) == 0);
+ }
+ while ((AES.STATUS & (AES_SRIF_bm|AES_ERROR_bm)) == 0);
/* Check error. */
if((AES.STATUS & AES_ERROR_bm) == 0) {
- /* Store the result of the encryption. */
- for(i = 0; i < AES_BLOCK_SIZE; i++) {
- dest[i] = AES.STATE;
+ /* Store the result of the encryption. */
+ for(i = 0; i < AES_BLOCK_SIZE; i++) {
+ dest[i] = AES.STATE;
}
- }
- else {
- return CRY_ERR_OP_FAILURE;
+ }
+ else {
+ return CRY_ERR_OP_FAILURE;
}
return CRY_NOERROR;
@@ -297,10 +297,10 @@ cryerror_t cry_lld_encrypt_AES(CRYDriver *cryp,
*
* @notapi
*/
-cryerror_t cry_lld_decrypt_AES(CRYDriver *cryp,
- crykey_t key_id,
- const uint8_t *src,
- uint8_t *dest) {
+cryerror_t cry_lld_decrypt_AES(CRYDriver *cryp,
+ crykey_t key_id,
+ const uint8_t *src,
+ uint8_t *dest) {
uint8_t i;
@@ -308,8 +308,8 @@ cryerror_t cry_lld_decrypt_AES(CRYDriver *cryp,
(void)key_id;
/* Load data into AES state memory. */
- for (i = 0; i < AES_BLOCK_SIZE; i++) {
- AES.STATE = src[i];
+ for (i = 0; i < AES_BLOCK_SIZE; i++) {
+ AES.STATE = src[i];
}
/* Set the AES decryption mode. */