提交 3b3b69ab 编写于 作者: H Huzaifa Sidhpurwala 提交者: Dr. Stephen Henson

Make sure BN_sqr can never return a negative value.

PR#3410
上级 7be6b27a
......@@ -77,6 +77,7 @@ int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx)
if (al <= 0)
{
r->top=0;
r->neg = 0;
return 1;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册