mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 11:44:38 +02:00
add additional check so dead code can be reached
This commit is contained in:
@@ -1017,7 +1017,9 @@ int wc_ed448_import_public_ex(const byte* in, word32 inLen, ed448_key* key,
|
||||
ret = BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
if ((inLen != ED448_PUB_KEY_SIZE) && (inLen != ED448_PUB_KEY_SIZE + 1)) {
|
||||
if ((inLen != ED448_PUB_KEY_SIZE) &&
|
||||
(inLen != ED448_PUB_KEY_SIZE + 1) &&
|
||||
(inLen != 2 * ED448_PUB_KEY_SIZE + 1)) {
|
||||
ret = BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user