提交 909abce8 编写于 作者: B Bodo Möller

disable Sun divison algorithm by default

上级 33d4e690
...@@ -120,9 +120,11 @@ ...@@ -120,9 +120,11 @@
bntest.c has additional tests for binary polynomial arithmetic. bntest.c has additional tests for binary polynomial arithmetic.
Two implementations for BN_GF2m_mod_div() are available (selected Two implementations for BN_GF2m_mod_div() are available.
at compile-time). ... The default algorithm simply uses BN_GF2m_mod_inv() and
TBD ... OPENSSL_NO_SUN_DIV ... --Bodo BN_GF2m_mod_mul(). The alternative algorithm is compiled in only
if OPENSSL_SUN_GF2M_DIV is defined (patent pending; read the
copyright notice in crypto/bn/bn_gf2m.c before enabling it).
[Sheueling Chang Shantz and Douglas Stebila [Sheueling Chang Shantz and Douglas Stebila
(Sun Microsystems Laboratories)] (Sun Microsystems Laboratories)]
......
...@@ -613,7 +613,7 @@ int BN_GF2m_mod_inv_arr(BIGNUM *r, const BIGNUM *xx, const unsigned int p[], BN_ ...@@ -613,7 +613,7 @@ int BN_GF2m_mod_inv_arr(BIGNUM *r, const BIGNUM *xx, const unsigned int p[], BN_
} }
#ifdef OPENSSL_NO_SUN_DIV #ifndef OPENSSL_SUN_GF2M_DIV
/* Divide y by x, reduce modulo p, and store the result in r. r could be x /* Divide y by x, reduce modulo p, and store the result in r. r could be x
* or y, x could equal y. * or y, x could equal y.
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册