summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/BN_mod_mul_montgomery.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/man/BN_mod_mul_montgomery.312
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/libcrypto/man/BN_mod_mul_montgomery.3 b/src/lib/libcrypto/man/BN_mod_mul_montgomery.3
index 8ec14c3ea0..ca5f869d4f 100644
--- a/src/lib/libcrypto/man/BN_mod_mul_montgomery.3
+++ b/src/lib/libcrypto/man/BN_mod_mul_montgomery.3
@@ -1,15 +1,15 @@
1.\" $OpenBSD: BN_mod_mul_montgomery.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: BN_mod_mul_montgomery.3,v 1.3 2016/11/08 22:19:45 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 8 2016 $
4.Dt BN_MOD_MUL_MONTGOMERY 3 4.Dt BN_MOD_MUL_MONTGOMERY 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
7.Nm BN_mod_mul_montgomery ,
8.Nm BN_MONT_CTX_new , 7.Nm BN_MONT_CTX_new ,
9.Nm BN_MONT_CTX_init , 8.Nm BN_MONT_CTX_init ,
10.Nm BN_MONT_CTX_free , 9.Nm BN_MONT_CTX_free ,
11.Nm BN_MONT_CTX_set , 10.Nm BN_MONT_CTX_set ,
12.Nm BN_MONT_CTX_copy , 11.Nm BN_MONT_CTX_copy ,
12.Nm BN_mod_mul_montgomery ,
13.Nm BN_from_montgomery , 13.Nm BN_from_montgomery ,
14.Nm BN_to_montgomery 14.Nm BN_to_montgomery
15.Nd Montgomery multiplication 15.Nd Montgomery multiplication
@@ -107,12 +107,12 @@ and places the result in
107.Fn BN_from_montgomery 107.Fn BN_from_montgomery
108performs the Montgomery reduction 108performs the Montgomery reduction
109.Pp 109.Pp
110.D1 Fa r No = Fa a No * R^-1. 110.D1 Fa r No = Fa a No * R^-1
111.Pp 111.Pp
112.Fn BN_to_montgomery 112.Fn BN_to_montgomery
113computes 113computes
114.Pp 114.Pp
115.D1 Mont Ns Po Fa a , No R^2 Pc = Fa a No * R . 115.D1 Mont Ns Po Fa a , No R^2 Pc = Fa a No * R
116.Pp 116.Pp
117Note that 117Note that
118.Fa a 118.Fa a
@@ -142,7 +142,7 @@ typedef struct bn_mont_ctx_st {
142.Fn BN_to_montgomery 142.Fn BN_to_montgomery
143is a macro. 143is a macro.
144.Pp 144.Pp
145.Sy Warning: 145.Sy Warning :
146The inputs must be reduced modulo 146The inputs must be reduced modulo
147.Fa m , 147.Fa m ,
148otherwise the result will be outside the expected range. 148otherwise the result will be outside the expected range.