提交 afbe74d3 编写于 作者: G Geoff Thorpe

Actually, that last change to BN_get_word() was a little too simple.

上级 f18ea6ca
......@@ -618,8 +618,10 @@ BN_ULONG BN_get_word(const BIGNUM *a)
{
if (a->top > 1)
return BN_MASK2;
else
else if (a->top == 1)
return a->d[0];
/* a->top == 0 */
return 0;
}
int BN_set_word(BIGNUM *a, BN_ULONG w)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册