@@ -174,11 +174,11 @@ \subsubsection{OpenBSD}
174174cc -I./ -Wall -Wsign-compare -Wextra -Wshadow -Wsystem-headers -Wdeclaration-afo...
175175cc -I./ -Wall -Wsign-compare -Wextra -Wshadow -Wsystem-headers -Wdeclaration-afo...
176176cc -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
180180cc: 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
182182gmake: *** [makefile.shared:64: libtommath.la] Error 1
183183\end {alltt }
184184
@@ -259,7 +259,7 @@ \section{Build Configuration}
259259\subsection {Build Depends }
260260In the file tommath\_ class.h you will see a large list of C `` defines'' followed by a series of `` ifdefs''
261261which 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
263263function in the respective file will be compiled and linked into the library. Accordingly when the define
264264is absent the file will not be compiled and not contribute any size to the library.
265265
@@ -275,7 +275,7 @@ \subsection{Build Tweaks}
275275\begin {center }
276276\begin {tabular }{|l|l|}
277277\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 \\
279279 & functional mp\_ div() function \\
280280\hline
281281\end {tabular }
@@ -293,20 +293,20 @@ \subsubsection{Moduli Related}
293293\begin {center }
294294\begin {tabular }{|l|l|}
295295\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 \\
301301\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 \\
310310\hline
311311\end {tabular }
312312\end {center }
@@ -317,14 +317,14 @@ \subsubsection{Operand Size Related}
317317\begin {center }
318318\begin {tabular }{|l|l|}
319319\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 \\
328328
329329\hline
330330\end {tabular }
0 commit comments