@@ -174,11 +174,11 @@ \subsubsection{OpenBSD}
174
174
cc -I./ -Wall -Wsign-compare -Wextra -Wshadow -Wsystem-headers -Wdeclaration-afo...
175
175
cc -I./ -Wall -Wsign-compare -Wextra -Wshadow -Wsystem-headers -Wdeclaration-afo...
176
176
cc -I./ -Wall -Wsign-compare -Wextra -Wshadow -Wsystem-headers -Wdeclaration-afo...
177
- libtool --mode=link --tag=CC cc bn_error .lo bn_s_mp_invmod_fast .lo bn_fast_mp_mo
178
- libtool: link: cc bn_error .lo bn_s_mp_invmod_fast .lo bn_s_mp_montgomery_reduce_fast0
179
- bn_error .lo: file not recognized: File format not recognized
177
+ libtool --mode=link --tag=CC cc error .lo s_mp_invmod_fast .lo fast_mp_mo
178
+ libtool: link: cc error .lo s_mp_invmod_fast .lo s_mp_montgomery_reduce_fast0
179
+ error .lo: file not recognized: File format not recognized
180
180
cc: error: linker command failed with exit code 1 (use -v to see invocation)
181
- Error while executing cc bn_error .lo bn_s_mp_invmod_fast .lo bn_fast_mp_montgomery0
181
+ Error while executing cc error .lo s_mp_invmod_fast .lo fast_mp_montgomery0
182
182
gmake: *** [makefile.shared:64: libtommath.la] Error 1
183
183
\end {alltt }
184
184
@@ -259,7 +259,7 @@ \section{Build Configuration}
259
259
\subsection {Build Depends }
260
260
In the file tommath\_ class.h you will see a large list of C `` defines'' followed by a series of `` ifdefs''
261
261
which further define symbols. All of the symbols (technically they're macros $ \ldots $ ) represent a given C source
262
- file. For instance, BN \_ MP \_ ADD\_ C represents the file `` bn\_ mp\_ add.c'' . When a define has been enabled the
262
+ file. For instance, MP \_ ADD\_ C represents the file `` bn\_ mp\_ add.c'' . When a define has been enabled the
263
263
function in the respective file will be compiled and linked into the library. Accordingly when the define
264
264
is absent the file will not be compiled and not contribute any size to the library.
265
265
@@ -275,7 +275,7 @@ \subsection{Build Tweaks}
275
275
\begin {center }
276
276
\begin {tabular }{|l|l|}
277
277
\hline \textbf {Define } & \textbf {Purpose } \\
278
- \hline BN \_ MP \_ DIV\_ SMALL & Enables a slower, smaller and equally \\
278
+ \hline MP \_ DIV\_ SMALL & Enables a slower, smaller and equally \\
279
279
& functional mp\_ div() function \\
280
280
\hline
281
281
\end {tabular }
@@ -293,20 +293,20 @@ \subsubsection{Moduli Related}
293
293
\begin {center }
294
294
\begin {tabular }{|l|l|}
295
295
\hline \textbf {Restriction } & \textbf {Undefine } \\
296
- \hline Exponentiation with odd moduli only & BN \_ S \_ MP\_ EXPTMOD\_ C \\
297
- & BN \_ MP \_ REDUCE\_ C \\
298
- & BN \_ MP \_ REDUCE\_ SETUP\_ C \\
299
- & BN \_ S \_ MP\_ MUL\_ HIGH\_ DIGS\_ C \\
300
- & BN \_ FAST \_ S\_ MP\_ MUL\_ HIGH\_ DIGS\_ C \\
296
+ \hline Exponentiation with odd moduli only & S \_ MP\_ EXPTMOD\_ C \\
297
+ & MP \_ REDUCE\_ C \\
298
+ & MP \_ REDUCE\_ SETUP\_ C \\
299
+ & S \_ MP\_ MUL\_ HIGH\_ DIGS\_ C \\
300
+ & FAST \_ S\_ MP\_ MUL\_ HIGH\_ DIGS\_ C \\
301
301
\hline Exponentiation with random odd moduli & (The above plus the following) \\
302
- & BN \_ MP \_ REDUCE\_ 2K\_ C \\
303
- & BN \_ MP \_ REDUCE\_ 2K\_ SETUP\_ C \\
304
- & BN \_ MP \_ REDUCE\_ IS\_ 2K\_ C \\
305
- & BN \_ MP \_ DR\_ IS\_ MODULUS\_ C \\
306
- & BN \_ MP \_ DR\_ REDUCE\_ C \\
307
- & BN \_ MP \_ DR\_ SETUP\_ C \\
308
- \hline Modular inverse odd moduli only & BN \_ MP \_ INVMOD\_ SLOW\_ C \\
309
- \hline Modular inverse (both, smaller/slower) & BN \_ FAST \_ MP\_ INVMOD\_ C \\
302
+ & MP \_ REDUCE\_ 2K\_ C \\
303
+ & MP \_ REDUCE\_ 2K\_ SETUP\_ C \\
304
+ & MP \_ REDUCE\_ IS\_ 2K\_ C \\
305
+ & MP \_ DR\_ IS\_ MODULUS\_ C \\
306
+ & MP \_ DR\_ REDUCE\_ C \\
307
+ & MP \_ DR\_ SETUP\_ C \\
308
+ \hline Modular inverse odd moduli only & MP \_ INVMOD\_ SLOW\_ C \\
309
+ \hline Modular inverse (both, smaller/slower) & FAST \_ MP\_ INVMOD\_ C \\
310
310
\hline
311
311
\end {tabular }
312
312
\end {center }
@@ -317,14 +317,14 @@ \subsubsection{Operand Size Related}
317
317
\begin {center }
318
318
\begin {tabular }{|l|l|}
319
319
\hline \textbf {Restriction } & \textbf {Undefine } \\
320
- \hline Moduli $ \le 2560 $ bits & BN \_ MP \_ MONTGOMERY\_ REDUCE\_ C \\
321
- & BN \_ S \_ MP\_ MUL\_ DIGS\_ C \\
322
- & BN \_ S \_ MP\_ MUL\_ HIGH\_ DIGS\_ C \\
323
- & BN \_ S \_ MP\_ SQR\_ C \\
324
- \hline Polynomial Schmolynomial & BN \_ MP \_ KARATSUBA\_ MUL\_ C \\
325
- & BN \_ MP \_ KARATSUBA\_ SQR\_ C \\
326
- & BN \_ MP \_ TOOM\_ MUL\_ C \\
327
- & BN \_ MP \_ TOOM\_ SQR\_ C \\
320
+ \hline Moduli $ \le 2560 $ bits & MP \_ MONTGOMERY\_ REDUCE\_ C \\
321
+ & S \_ MP\_ MUL\_ DIGS\_ C \\
322
+ & S \_ MP\_ MUL\_ HIGH\_ DIGS\_ C \\
323
+ & S \_ MP\_ SQR\_ C \\
324
+ \hline Polynomial Schmolynomial & MP \_ KARATSUBA\_ MUL\_ C \\
325
+ & MP \_ KARATSUBA\_ SQR\_ C \\
326
+ & MP \_ TOOM\_ MUL\_ C \\
327
+ & MP \_ TOOM\_ SQR\_ C \\
328
328
329
329
\hline
330
330
\end {tabular }
0 commit comments