mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-13 09:34:52 +02:00
@@ -37058,6 +37058,8 @@ int DecodeAsymKey_Assign(const byte* input, word32* inOutIdx, word32 inSz,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (input == NULL || inOutIdx == NULL || inSz == 0 ||
|
if (input == NULL || inOutIdx == NULL || inSz == 0 ||
|
||||||
|
(seed == NULL && seedLen != NULL) ||
|
||||||
|
(seed != NULL && seedLen == NULL) ||
|
||||||
privKey == NULL || privKeyLen == NULL ||
|
privKey == NULL || privKeyLen == NULL ||
|
||||||
pubKey == NULL || pubKeyLen == NULL ||
|
pubKey == NULL || pubKeyLen == NULL ||
|
||||||
inOutKeyType == NULL) {
|
inOutKeyType == NULL) {
|
||||||
@@ -37066,10 +37068,6 @@ int DecodeAsymKey_Assign(const byte* input, word32* inOutIdx, word32 inSz,
|
|||||||
#endif
|
#endif
|
||||||
return BAD_FUNC_ARG;
|
return BAD_FUNC_ARG;
|
||||||
}
|
}
|
||||||
if ((seed == NULL && seedLen != NULL) ||
|
|
||||||
(seed != NULL && seedLen == NULL)) {
|
|
||||||
return BAD_FUNC_ARG;
|
|
||||||
}
|
|
||||||
|
|
||||||
allowSeed = (seed != NULL && seedLen != NULL);
|
allowSeed = (seed != NULL && seedLen != NULL);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user