summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>2018-05-09 09:54:51 +0200
committerManuel Pégourié-Gonnard <manuel.pegourie-gonnard@arm.com>2018-05-24 13:37:31 +0200
commitb8bd80aa026f9e84b267eb155b910b0d09526c27 (patch)
treed432c04b273c6ef5ac5e35c186e4050a20633041 /include
parent5ef92d309a759d9d2acdaf613021d7bfc66d6241 (diff)
Add FEATURE_NOT_AVAILABLE error codes.
Diffstat (limited to 'include')
-rw-r--r--include/mbedtls/chacha20.h3
-rw-r--r--include/mbedtls/chachapoly.h7
-rw-r--r--include/mbedtls/error.h6
-rw-r--r--include/mbedtls/poly1305.h3
4 files changed, 11 insertions, 8 deletions
diff --git a/include/mbedtls/chacha20.h b/include/mbedtls/chacha20.h
index 579ea388..7a8cd531 100644
--- a/include/mbedtls/chacha20.h
+++ b/include/mbedtls/chacha20.h
@@ -42,7 +42,8 @@
#include <stdint.h>
#include <stddef.h>
-#define MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA -0x003B /**< Invalid input parameter(s). */
+#define MBEDTLS_ERR_CHACHA20_BAD_INPUT_DATA -0x0053 /**< Invalid input parameter(s). */
+#define MBEDTLS_ERR_CHACHA20_FEATURE_UNAVAILABLE -0x0055 /**< Feature not available. For example, s part of the API is not implemented. */
#ifdef __cplusplus
extern "C" {
diff --git a/include/mbedtls/chachapoly.h b/include/mbedtls/chachapoly.h
index ce9737c2..a55a3eea 100644
--- a/include/mbedtls/chachapoly.h
+++ b/include/mbedtls/chachapoly.h
@@ -39,9 +39,10 @@
#include MBEDTLS_CONFIG_FILE
#endif
-#define MBEDTLS_ERR_CHACHAPOLY_BAD_INPUT_DATA -0x00047 /**< Invalid input parameter(s). */
-#define MBEDTLS_ERR_CHACHAPOLY_BAD_STATE -0x00049 /**< The requested operation is not permitted in the current state. */
-#define MBEDTLS_ERR_CHACHAPOLY_AUTH_FAILED -0x00049 /**< Authenticated decryption failed: data was not authentic. */
+#define MBEDTLS_ERR_CHACHAPOLY_BAD_INPUT_DATA -0x0054 /**< Invalid input parameter(s). */
+#define MBEDTLS_ERR_CHACHAPOLY_BAD_STATE -0x0056 /**< The requested operation is not permitted in the current state. */
+#define MBEDTLS_ERR_CHACHAPOLY_AUTH_FAILED -0x0058 /**< Authenticated decryption failed: data was not authentic. */
+#define MBEDTLS_ERR_CHACHAPOLY_FEATURE_UNAVAILABLE -0x005A /**< Feature not available. For example, s part of the API is not implemented. */
#ifdef __cplusplus
diff --git a/include/mbedtls/error.h b/include/mbedtls/error.h
index e056975a..21fa9fce 100644
--- a/include/mbedtls/error.h
+++ b/include/mbedtls/error.h
@@ -76,9 +76,9 @@
* SHA1 1 0x0035-0x0035
* SHA256 1 0x0037-0x0037
* SHA512 1 0x0039-0x0039
- * CHACHA20 1 0x003B-0x003B
- * POLY1305 1 0x0041-0x0041
- * CHACHAPOLY 2 0x0047-0x0049
+ * CHACHA20 2 0x0053-0x0055
+ * POLY1305 2 0x0057-0x0059
+ * CHACHAPOLY 4 0x0054-0x005A
*
* High-level module nr (3 bits - 0x0...-0x7...)
* Name ID Nr of Errors
diff --git a/include/mbedtls/poly1305.h b/include/mbedtls/poly1305.h
index 19f52377..021a3a0d 100644
--- a/include/mbedtls/poly1305.h
+++ b/include/mbedtls/poly1305.h
@@ -42,7 +42,8 @@
#include <stdint.h>
#include <stddef.h>
-#define MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA -0x0041 /**< Invalid input parameter(s). */
+#define MBEDTLS_ERR_POLY1305_BAD_INPUT_DATA -0x0057 /**< Invalid input parameter(s). */
+#define MBEDTLS_ERR_POLY1305_FEATURE_UNAVAILABLE -0x0059 /**< Feature not available. For example, s part of the API is not implemented. */
#ifdef __cplusplus
extern "C" {