summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-08-02 18:26:02 +0000
committerBodo Möller <bodo@openssl.org>2002-08-02 18:26:02 +0000
commit909abce8002bf6babc42b8196c812f738d8cd0d6 (patch)
treeccd10250c63a133f958d9222bb183728d190ebec
parent33d4e690ccd7cfc673af89d299e815ed35cc844a (diff)
disable Sun divison algorithm by default
-rw-r--r--CHANGES8
-rw-r--r--crypto/bn/bn_gf2m.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/CHANGES b/CHANGES
index 3067dc6389..2908d32432 100644
--- a/CHANGES
+++ b/CHANGES
@@ -120,9 +120,11 @@
bntest.c has additional tests for binary polynomial arithmetic.
- Two implementations for BN_GF2m_mod_div() are available (selected
- at compile-time). ...
-TBD ... OPENSSL_NO_SUN_DIV ... --Bodo
+ Two implementations for BN_GF2m_mod_div() are available.
+ The default algorithm simply uses BN_GF2m_mod_inv() and
+ 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
(Sun Microsystems Laboratories)]
diff --git a/crypto/bn/bn_gf2m.c b/crypto/bn/bn_gf2m.c
index ed8e704383..bf7031b3ab 100644
--- a/crypto/bn/bn_gf2m.c
+++ b/crypto/bn/bn_gf2m.c
@@ -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
* or y, x could equal y.
*/