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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user