- A error_strerror function() has been added to translate between error codes and their description.
- The error codes have been remapped and combining error codes is now done with a PLUS instead of an OR as error codes used are negative.
- Descriptions to all error codes have been added.
- Generation script for error.c has been created to automatically generate error.c from the available error definitions in the headers.
diff --git a/include/polarssl/aes.h b/include/polarssl/aes.h
index 4b97568..7404e4e 100644
--- a/include/polarssl/aes.h
+++ b/include/polarssl/aes.h
@@ -32,8 +32,8 @@
#define AES_ENCRYPT 1
#define AES_DECRYPT 0
-#define POLARSSL_ERR_AES_INVALID_KEY_LENGTH -0x0800
-#define POLARSSL_ERR_AES_INVALID_INPUT_LENGTH -0x0810
+#define POLARSSL_ERR_AES_INVALID_KEY_LENGTH -0x0020 /**< Invalid key length. */
+#define POLARSSL_ERR_AES_INVALID_INPUT_LENGTH -0x0022 /**< Invalid data input length. */
/**
* \brief AES context structure