aboutsummaryrefslogtreecommitdiff
path: root/include/noscryptutil.h
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2024-07-27 00:05:07 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2024-07-27 00:05:07 -0400
commit1640f79776c6b291b49a39a6128c05888fc4153e (patch)
treebe2e2b3dbf3e38f10c914ce5d017129d8b66566b /include/noscryptutil.h
parent07de078a3b5b7b0043d9f81bb5a9e750a3a0c7c1 (diff)
fix: Potential overflow in nip44 padding calculation
Diffstat (limited to 'include/noscryptutil.h')
-rw-r--r--include/noscryptutil.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/noscryptutil.h b/include/noscryptutil.h
index a5e460f..bd60c79 100644
--- a/include/noscryptutil.h
+++ b/include/noscryptutil.h
@@ -40,6 +40,8 @@ extern "C" {
#define E_CIPHER_BAD_NONCE -12
#define E_CIPHER_MAC_INVALID -13
#define E_CIPHER_NO_OUTPUT -14
+#define E_CIPHER_BAD_INPUT -15
+#define E_CIPHER_BAD_INPUT_SIZE -16
#define NC_UTIL_CIPHER_MODE_ENCRYPT 0x00u
#define NC_UTIL_CIPHER_MODE_DECRYPT 0x01u