From 93c2ed5ca1af342b694fe83b0fa5778d1579fc75 Mon Sep 17 00:00:00 2001 From: Theodore Ateba Date: Tue, 12 Jun 2018 12:27:06 +0000 Subject: Add crypto encryption and decryption error messages. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12088 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- os/hal/include/hal_crypto.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'os/hal/include') diff --git a/os/hal/include/hal_crypto.h b/os/hal/include/hal_crypto.h index f29d314b3..87202403a 100644 --- a/os/hal/include/hal_crypto.h +++ b/os/hal/include/hal_crypto.h @@ -98,7 +98,9 @@ typedef enum { CRY_ERR_INV_ALGO = 1, /**< Invalid cypher/mode. */ CRY_ERR_INV_KEY_SIZE = 2, /**< Invalid key size. */ CRY_ERR_INV_KEY_TYPE = 3, /**< Invalid key type. */ - CRY_ERR_INV_KEY_ID = 4 /**< Invalid key identifier. */ + CRY_ERR_INV_KEY_ID = 4, /**< Invalid key identifier. */ + CRY_ERR_ENCRYP = 5, /**< Encryption error. */ + CRY_ERR_DECRYP = 6 /**< Decryption error. */ } cryerror_t; /** -- cgit v1.2.3