Merge pull request #3756 from SparkiDev/sp_math_dh_agree

DH SP math: return key size error with DH Agree
pull/3742/head
toddouska 2021-02-15 12:26:04 -08:00 committed by GitHub
commit 30462fcf95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -1998,6 +1998,8 @@ static int wc_DhAgree_Sync(DhKey* key, byte* agree, word32* agreeSz,
mp_clear(z);
mp_clear(y);
mp_forcezero(x);
#else
ret = WC_KEY_SIZE_E;
#endif
#ifdef WOLFSSL_SMALL_STACK