Skip to content

Commit

Permalink
Update the true minimum ECC key size default
Browse files Browse the repository at this point in the history
The discrepancy shows up when trying to compile with FIPS
  • Loading branch information
Andras Fekete committed Jul 3, 2024
1 parent e340e41 commit 7cc42d4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3979,9 +3979,16 @@ fi

# ECC Minimum Key Size
AC_ARG_WITH([eccminsz],
[AS_HELP_STRING([--with-eccminsz=BITS],[Sets the ECC minimum key size (default: 224 bits)])],
[AS_HELP_STRING([--with-eccminsz=BITS],[Sets the ECC minimum key size (default: 224 bits non-FIPS / 192 bits with FIPS)])],
[ ENABLED_ECCMINSZ=$withval ],
[ ENABLED_ECCMINSZ=224 ]
[
if test "x$ENABLED_FIPS" = "xno"
then
ENABLED_ECCMINSZ=224
else
ENABLED_ECCMINSZ=192
fi
]
)
AM_CFLAGS="$AM_CFLAGS -DECC_MIN_KEY_SZ=$ENABLED_ECCMINSZ"

Expand Down

0 comments on commit 7cc42d4

Please sign in to comment.