mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-07 22:20:49 +02:00
key cannot be 0 length
This commit is contained in:
+1
-1
@@ -548,7 +548,7 @@ int SetEchConfigsEx(WOLFSSL_EchConfig** outputConfigs, void* heap,
|
||||
echConfig += 2;
|
||||
|
||||
/* hpke public_key */
|
||||
if (hpkePubkeyLen > HPKE_Npk_MAX ||
|
||||
if (hpkePubkeyLen == 0 || hpkePubkeyLen > HPKE_Npk_MAX ||
|
||||
hpkePubkeyLen != wc_HpkeKemGetEncLen(workingConfig->kemId)) {
|
||||
ret = BUFFER_E;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user