@@ -1502,7 +1502,7 @@ then
15021502 test "$enable_base64encode" = "" && enable_base64encode=yes
15031503 test "$enable_base16" = "" && enable_base16=yes
15041504 test "$enable_arc4" = "" && enable_arc4=yes
1505- test "$enable_blake2 " = "" && enable_blake2 =yes
1505+ test "$enable_blake2b " = "" && enable_blake2b =yes
15061506 test "$enable_blake2s" = "" && enable_blake2s=yes
15071507 test "$enable_md2" = "" && enable_md2=yes
15081508 test "$enable_md4" = "" && enable_md4=yes
@@ -4442,15 +4442,21 @@ fi
44424442
44434443
44444444# BLAKE2
4445+ AC_ARG_ENABLE ( [ blake2b] ,
4446+ [ AS_HELP_STRING ( [ --enable-blake2b] ,[ Enable wolfSSL BLAKE2b support (default: disabled)] ) ] ,
4447+ [ ENABLED_BLAKE2B=$enableval ] ,
4448+ [ ENABLED_BLAKE2B=no ]
4449+ )
4450+
4451+ # Backward-compat synonym for blake2b:
44454452AC_ARG_ENABLE ( [ blake2] ,
44464453 [ AS_HELP_STRING ( [ --enable-blake2] ,[ Enable wolfSSL BLAKE2b support (default: disabled)] ) ] ,
4447- [ ENABLED_BLAKE2=$enableval ] ,
4448- [ ENABLED_BLAKE2=no ]
4454+ [ ENABLED_BLAKE2B=$enableval ]
44494455 )
44504456
4451- if test "$ENABLED_BLAKE2 " = "yes"
4457+ if test "$ENABLED_BLAKE2B " = "yes"
44524458then
4453- AM_CFLAGS="$AM_CFLAGS -DHAVE_BLAKE2 - DHAVE_BLAKE2B"
4459+ AM_CFLAGS="$AM_CFLAGS -DHAVE_BLAKE2B"
44544460fi
44554461
44564462
@@ -4463,7 +4469,6 @@ AC_ARG_ENABLE([blake2s],
44634469if test "$ENABLED_BLAKE2S" = "yes"
44644470then
44654471 AM_CFLAGS="$AM_CFLAGS -DHAVE_BLAKE2S"
4466- ENABLED_BLAKE2="yes"
44674472fi
44684473
44694474
@@ -11492,7 +11497,7 @@ AM_CONDITIONAL([BUILD_DEVCRYPTO],[test "x$ENABLED_DEVCRYPTO" = "xyes"])
1149211497AM_CONDITIONAL([ BUILD_CAMELLIA] ,[ test "x$ENABLED_CAMELLIA" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1149311498AM_CONDITIONAL([ BUILD_MD2] ,[ test "x$ENABLED_MD2" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1149411499AM_CONDITIONAL([ BUILD_RIPEMD] ,[ test "x$ENABLED_RIPEMD" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11495- AM_CONDITIONAL([ BUILD_BLAKE2 ] ,[ test "x$ENABLED_BLAKE2 " = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
11500+ AM_CONDITIONAL([ BUILD_BLAKE2B ] ,[ test "x$ENABLED_BLAKE2B " = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1149611501AM_CONDITIONAL([ BUILD_BLAKE2S] ,[ test "x$ENABLED_BLAKE2S" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1149711502AM_CONDITIONAL([ BUILD_SHA512] ,[ test "x$ENABLED_SHA512" = "xyes" || test "x$ENABLED_SHA384" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1149811503AM_CONDITIONAL([ BUILD_DSA] ,[ test "x$ENABLED_DSA" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
@@ -12013,7 +12018,7 @@ echo " * SHA3: $ENABLED_SHA3"
1201312018echo " * SHAKE128: $ENABLED_SHAKE128"
1201412019echo " * SHAKE256: $ENABLED_SHAKE256"
1201512020echo " * SM3: $ENABLED_SM3"
12016- echo " * BLAKE2 : $ENABLED_BLAKE2 "
12021+ echo " * BLAKE2B : $ENABLED_BLAKE2B "
1201712022echo " * BLAKE2S: $ENABLED_BLAKE2S"
1201812023echo " * SipHash: $ENABLED_SIPHASH"
1201912024echo " * CMAC: $ENABLED_CMAC"
0 commit comments