- Fixed error codes. Negative when needed (SSL error codes). Non-negative if error-codes are OR'ed to other error codes (ASN1, Base64, MPI, DHM). The rest is negative by default.
diff --git a/include/polarssl/aes.h b/include/polarssl/aes.h
index 11db17c..5e18ab7 100644
--- a/include/polarssl/aes.h
+++ b/include/polarssl/aes.h
@@ -26,7 +26,7 @@
#define AES_ENCRYPT 1
#define AES_DECRYPT 0
-#define POLARSSL_ERR_AES_INVALID_KEY_LENGTH 0x0800
+#define POLARSSL_ERR_AES_INVALID_KEY_LENGTH -0x0800
/**
* \brief AES context structure