@@ -2272,7 +2272,7 @@ \section{Primality Testing}
2272
2272
2273
2273
If $ t$ is set to a negative value the test will run the deterministic Miller--Rabin test for the
2274
2274
primes 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
2276
2276
than
2277
2277
$ 2 ^32 $ is $ 4290067842 \cdot 262853 \cdot 1206721 \cdot 2134439 + 3 $ }. That limit has to be checked
2278
2278
by
@@ -2343,10 +2343,10 @@ \section{PRNG}
2343
2343
2344
2344
The random number generated with these two functions is cryptographically secure if the source of
2345
2345
random 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
2347
2347
all operating systems that have it.
2348
2348
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.
2350
2350
\index {mp\_ rand\_ source}
2351
2351
\begin {alltt }
2352
2352
void mp_rand_source(mp_err(*source)(void *out, size_t size));
@@ -2581,7 +2581,7 @@ \section{Single Digit Functions}
2581
2581
\end {alltt }
2582
2582
2583
2583
These 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
2585
2585
since you will not have to allocate an entire \texttt {mp\_ int } to store a number like $ 1 $ or $ 2 $ .
2586
2586
2587
2587
The functions \texttt {mp\_ incr } and \texttt {mp\_ decr } mimic the postfix operators \texttt {++ } and
@@ -2604,13 +2604,13 @@ \section{Function Macros}
2604
2604
\begin {alltt }
2605
2605
bool mp_iseven(const mp_int *a)
2606
2606
\end {alltt }
2607
- Checks if $ a = 0 mod 2 $
2607
+ Checks if $ a = 0 \; \mathrm { mod} \; 2 $
2608
2608
2609
2609
\index {mp\_ isodd}
2610
2610
\begin {alltt }
2611
2611
bool mp_isodd(const mp_int *a)
2612
2612
\end {alltt }
2613
- Checks if $ a = 1 mod 2 $
2613
+ Checks if $ a = 1 \; \mathrm { mod} \; 2 $
2614
2614
2615
2615
\index {mp\_ isneg}
2616
2616
\begin {alltt }
0 commit comments