forked from wolfSSL/wolfssl
Fix ext_xmss sigsleft null deref.
This commit is contained in:
@ -804,10 +804,10 @@ int wc_XmssKey_SigsLeft(XmssKey* key)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = idx < ((1ULL << params->full_height) - 1);
|
ret = idx < ((1ULL << params->full_height) - 1);
|
||||||
}
|
|
||||||
|
|
||||||
/* Force zero the secret key from memory always. */
|
/* Force zero the secret key from memory always. */
|
||||||
ForceZero(key->sk, key->sk_len);
|
ForceZero(key->sk, key->sk_len);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user