mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
added upper bound check on DH min bit size for configure forced default
This commit is contained in:
@@ -906,6 +906,9 @@ enum Misc {
|
|||||||
#if (WOLFSSL_MIN_DHKEY_BITS % 8)
|
#if (WOLFSSL_MIN_DHKEY_BITS % 8)
|
||||||
#error DH minimum bit size must be multiple of 8
|
#error DH minimum bit size must be multiple of 8
|
||||||
#endif
|
#endif
|
||||||
|
#if (WOLFSSL_MIN_DHKEY_BITS > 16000)
|
||||||
|
#error DH minimum bit size must not be greater than 16000
|
||||||
|
#endif
|
||||||
#define MIN_DHKEY_SZ (WOLFSSL_MIN_DHKEY_BITS / 8)
|
#define MIN_DHKEY_SZ (WOLFSSL_MIN_DHKEY_BITS / 8)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user