提交 8b07c005 编写于 作者: A Andy Polyakov

crypto/bn/bn_nist.c: work around MSC ARM compiler bug.

RT: 3541
Reviewed-by: NEmilia Kasper <emilia@openssl.org>
上级 40155f40
...@@ -1108,9 +1108,9 @@ int BN_nist_mod_521(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, ...@@ -1108,9 +1108,9 @@ int BN_nist_mod_521(BIGNUM *r, const BIGNUM *a, const BIGNUM *field,
/* ... and right shift */ /* ... and right shift */
for (val=t_d[0],i=0; i<BN_NIST_521_TOP-1; i++) for (val=t_d[0],i=0; i<BN_NIST_521_TOP-1; i++)
{ {
tmp = val>>BN_NIST_521_RSHIFT; t_d[i] = ( val>>BN_NIST_521_RSHIFT |
val = t_d[i+1]; (tmp=t_d[i+1])<<BN_NIST_521_LSHIFT ) & BN_MASK2;
t_d[i] = (tmp | val<<BN_NIST_521_LSHIFT) & BN_MASK2; val=tmp;
} }
t_d[i] = val>>BN_NIST_521_RSHIFT; t_d[i] = val>>BN_NIST_521_RSHIFT;
/* lower 521 bits */ /* lower 521 bits */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册