Use wolfSSL 5.6.2 for tests

ECC keys can now be smaller so we can't access the private key directly
anymore.
This commit is contained in:
Tobias Brunner
2023-06-13 10:13:29 +02:00
parent 4e1dc0a224
commit 43975f33ef
3 changed files with 10 additions and 4 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ build_botan()
build_wolfssl()
{
WOLFSSL_REV=v5.6.0-stable
WOLFSSL_REV=v5.6.2-stable
WOLFSSL_DIR=$DEPS_BUILD_DIR/wolfssl
if test -d "$WOLFSSL_DIR"; then
@@ -37,6 +37,10 @@
#define USE_RNG_FOR_TIMING_RESISTANCE
#endif
#ifndef WOLFSSL_HAVE_ECC_KEY_GET_PRIV
#define wc_ecc_key_get_priv(key) (&((key)->k))
#endif
typedef struct private_wolfssl_ec_diffie_hellman_t private_wolfssl_ec_diffie_hellman_t;
/**
@@ -177,7 +181,8 @@ METHOD(key_exchange_t, set_private_key, bool,
return FALSE;
}
ret = mp_read_unsigned_bin(&this->key.k, value.ptr, value.len);
ret = mp_read_unsigned_bin(wc_ecc_key_get_priv(&this->key), value.ptr,
value.len);
/* get base point */
if (ret == 0)
{
@@ -194,7 +199,8 @@ METHOD(key_exchange_t, set_private_key, bool,
if (ret == 0)
{
/* calculate public key */
success = wolfssl_ecc_multiply(this->key.dp, &this->key.k, base,
success = wolfssl_ecc_multiply(this->key.dp,
wc_ecc_key_get_priv(&this->key), base,
&this->key.pubkey);
}
+1 -1
View File
@@ -2,7 +2,7 @@
PKG = wolfssl
SRC = https://github.com/wolfSSL/$(PKG).git
REV = v5.6.0-stable
REV = v5.6.2-stable
NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)