mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 12:14:38 +02:00
Fix for dh_test to make sure the provided agree size is populated. This resolves issue with async and QuickAssist DH.
This commit is contained in:
@@ -11679,7 +11679,7 @@ int dh_test(void)
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
word32 bytes;
|
word32 bytes;
|
||||||
word32 idx = 0, privSz, pubSz, privSz2, pubSz2, agreeSz, agreeSz2;
|
word32 idx = 0, privSz, pubSz, privSz2, pubSz2;
|
||||||
byte tmp[1024];
|
byte tmp[1024];
|
||||||
byte priv[256];
|
byte priv[256];
|
||||||
byte pub[256];
|
byte pub[256];
|
||||||
@@ -11687,6 +11687,8 @@ int dh_test(void)
|
|||||||
byte pub2[256];
|
byte pub2[256];
|
||||||
byte agree[256];
|
byte agree[256];
|
||||||
byte agree2[256];
|
byte agree2[256];
|
||||||
|
word32 agreeSz = (word32)sizeof(agree);
|
||||||
|
word32 agreeSz2 = (word32)sizeof(agree2);
|
||||||
DhKey key;
|
DhKey key;
|
||||||
DhKey key2;
|
DhKey key2;
|
||||||
WC_RNG rng;
|
WC_RNG rng;
|
||||||
|
Reference in New Issue
Block a user