Skip to content

Commit

Permalink
Merge pull request #184 from haydenroche5/x931
Browse files Browse the repository at this point in the history
Add support for X9.31 padding with RSA signatures.
  • Loading branch information
SparkiDev authored May 16, 2022
2 parents 8d3e05e + 97061a0 commit f76b343
Show file tree
Hide file tree
Showing 5 changed files with 561 additions and 66 deletions.
13 changes: 13 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,18 @@ then
AM_CFLAGS="$AM_CFLAGS -DWE_HAVE_RSA"
fi

# RSA X9.31 padding
AC_ARG_ENABLE([rsa-x931],
[AS_HELP_STRING([--enable-rsa-x931],[Enable X9.31 padding for RSA signatures (default: enabled)])],
[ ENABLED_RSA_X931=$enableval ],
[ ENABLED_RSA_X931=yes ]
)

if test "$ENABLED_RSA" = "yes" && test "$ENABLED_RSA_X931" = "yes"
then
AM_CFLAGS="$AM_CFLAGS -DWE_HAVE_RSA_X931"
fi

# DH
AC_ARG_ENABLE([dh],
[AS_HELP_STRING([--enable-dh],[Enable Diffie-Hellman (DH) (default: enabled)])],
Expand Down Expand Up @@ -739,6 +751,7 @@ echo " * TLS1 PRF: $ENABLED_TLS1_PRF"
echo " * HKDF: $ENABLED_HKDF"
echo " * Random: $ENABLED_RAND"
echo " * RSA: $ENABLED_RSA"
echo " * RSA X9.31 padding: $ENABLED_RSA_X931"
echo " * DH: $ENABLED_DH"
echo " * AES-GCM: $ENABLED_AESGCM"
echo " * AES-CBC: $ENABLED_AESCBC"
Expand Down
Loading

0 comments on commit f76b343

Please sign in to comment.