diff options
author | Theodore Ateba <tf.ateba@gmail.com> | 2018-06-13 09:41:27 +0000 |
---|---|---|
committer | Theodore Ateba <tf.ateba@gmail.com> | 2018-06-13 09:41:27 +0000 |
commit | 6319b0ea1a9ef22364146c301c6beb491aa713e8 (patch) | |
tree | 7b771058f575b81f99e308f910ffe79f7922850c /os/hal/ports/AVR/XMEGA | |
parent | 70542995be139ee60405e3f810d16845a998ad88 (diff) | |
download | ChibiOS-6319b0ea1a9ef22364146c301c6beb491aa713e8.tar.gz ChibiOS-6319b0ea1a9ef22364146c301c6beb491aa713e8.tar.bz2 ChibiOS-6319b0ea1a9ef22364146c301c6beb491aa713e8.zip |
AVR: Update the error code for the encryption/decryption operations.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12095 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'os/hal/ports/AVR/XMEGA')
-rw-r--r-- | os/hal/ports/AVR/XMEGA/LLD/CRYPv1/hal_crypto_lld.c | 4 |
1 files changed, 2 insertions, 2 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 99dbcabce..3171aca74 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 @@ -270,7 +270,7 @@ cryerror_t cry_lld_encrypt_AES(CRYDriver *cryp, }
}
else {
- return CRY_ERR_ENCRYP;
+ return CRY_ERR_OP_FAILURE;
}
return CRY_NOERROR;
@@ -331,7 +331,7 @@ cryerror_t cry_lld_decrypt_AES(CRYDriver *cryp, }
}
else {
- return CRY_ERR_DECRYP;
+ return CRY_ERR_OP_FAILURE;
}
return CRY_NOERROR;
|