@@ -2272,7 +2272,7 @@ \section{Primality Testing}
22722272
22732273If $ t$ is set to a negative value the test will run the deterministic Miller--Rabin test for the
22742274primes up to $ 3 \, 317 \, 044 \, 064 \, 679 \, 887 \ 385 \, 961 \, 981 $ \footnote {The semiprime $ 1287836182261 \cdot
2275- 2575672364521 $ with both factors smaller than $ 2 ^64 $ . An alternative with all factors smaller
2275+ 2575672364521 $ with both factors smaller than $ 2 ^{64} $ . An alternative with all factors smaller
22762276 than
22772277 $ 2 ^32 $ is $ 4290067842 \cdot 262853 \cdot 1206721 \cdot 2134439 + 3 $ }. That limit has to be checked
22782278by
@@ -2343,10 +2343,10 @@ \section{PRNG}
23432343
23442344The random number generated with these two functions is cryptographically secure if the source of
23452345random numbers the operating systems offers is cryptographically secure. It will use
2346- \texttt {arc4random() } if the OS is a BSD flavor, Wincrypt on Windows, or \texttt {/dev urandom } on
2346+ \texttt {arc4random() } if the OS is a BSD flavor, Wincrypt on Windows, or \texttt {/dev/ urandom } on
23472347all operating systems that have it.
23482348
2349- If you have a custom random source you might find the function \texttt ( mp\_ rand\_ source) useful.
2349+ If you have a custom random source you might find the function \texttt { mp\_ rand\_ source() } useful.
23502350\index {mp\_ rand\_ source}
23512351\begin {alltt }
23522352void mp_rand_source(mp_err(*source)(void *out, size_t size));
@@ -2581,7 +2581,7 @@ \section{Single Digit Functions}
25812581\end {alltt }
25822582
25832583These work like the full \texttt {mp\_ int } capable variants except the second parameter $ b$ is a
2584- \texttt {mp\_ digit }. These functions fairly handy if you have to work with relatively small numbers
2584+ \texttt {mp\_ digit }. These functions come fairly handy if you have to work with relatively small numbers
25852585since you will not have to allocate an entire \texttt {mp\_ int } to store a number like $ 1 $ or $ 2 $ .
25862586
25872587The functions \texttt {mp\_ incr } and \texttt {mp\_ decr } mimic the postfix operators \texttt {++ } and
@@ -2604,13 +2604,13 @@ \section{Function Macros}
26042604\begin {alltt }
26052605bool mp_iseven(const mp_int *a)
26062606\end {alltt }
2607- Checks if $ a = 0 mod 2 $
2607+ Checks if $ a = 0 \; \mathrm { mod} \; 2 $
26082608
26092609\index {mp\_ isodd}
26102610\begin {alltt }
26112611bool mp_isodd(const mp_int *a)
26122612\end {alltt }
2613- Checks if $ a = 1 mod 2 $
2613+ Checks if $ a = 1 \; \mathrm { mod} \; 2 $
26142614
26152615\index {mp\_ isneg}
26162616\begin {alltt }
0 commit comments