- 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/xtea.h b/include/polarssl/xtea.h
index 8f41d5d..e2adb87 100644
--- a/include/polarssl/xtea.h
+++ b/include/polarssl/xtea.h
@@ -39,7 +39,7 @@
#define XTEA_ENCRYPT 1
#define XTEA_DECRYPT 0
-#define POLARSSL_ERR_XTEA_INVALID_INPUT_LENGTH -0x0820
+#define POLARSSL_ERR_XTEA_INVALID_INPUT_LENGTH -0x0028 /**< The data input has an invalid length. */
/**
* \brief XTEA context structure