Commit ceb7032a66 for bind
commit ceb7032a6692d797e18f31fc92f2231b79168a92
Author: Aydın Mercan <aydin@isc.org>
Date: Tue Sep 22 13:38:09 2026 +0300
Add the AEAD limits as macros
The existing `constexpr` constants register as VLAs when used with our
C11 compability shims to size an array.
diff --git a/lib/isc/include/isc/crypto.h b/lib/isc/include/isc/crypto.h
index 6bae97377d..ed3462174a 100644
--- a/lib/isc/include/isc/crypto.h
+++ b/lib/isc/include/isc/crypto.h
@@ -22,6 +22,10 @@
#include <isc/region.h>
#include <isc/types.h>
+#define ISC_CRYPTO_AEAD_MAX_KEY_LENGTH 32
+#define ISC_CRYPTO_AEAD_MAX_NONCE_LENGTH 12
+#define ISC_CRYPTO_AEAD_MAX_TAG_LENGTH 16
+
/**
* \brief
* Context to an AEAD cipher.