Skip to content

Commit 1b3792b

Browse files
authored
Merge pull request #496 from libtom/update-documentation
Update documentation
2 parents d014573 + 96bfafa commit 1b3792b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

doc/bn.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,7 +2272,7 @@ \section{Primality Testing}
22722272

22732273
If $t$ is set to a negative value the test will run the deterministic Miller--Rabin test for the
22742274
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
22762276
than
22772277
$2^32$ is $4290067842\cdot 262853\cdot 1206721\cdot 2134439 + 3$}. That limit has to be checked
22782278
by
@@ -2343,10 +2343,10 @@ \section{PRNG}
23432343

23442344
The random number generated with these two functions is cryptographically secure if the source of
23452345
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
23472347
all 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}
23522352
void mp_rand_source(mp_err(*source)(void *out, size_t size));
@@ -2581,7 +2581,7 @@ \section{Single Digit Functions}
25812581
\end{alltt}
25822582

25832583
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
25852585
since you will not have to allocate an entire \texttt{mp\_int} to store a number like $1$ or $2$.
25862586

25872587
The functions \texttt{mp\_incr} and \texttt{mp\_decr} mimic the postfix operators \texttt{++} and
@@ -2604,13 +2604,13 @@ \section{Function Macros}
26042604
\begin{alltt}
26052605
bool 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}
26112611
bool 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

Comments
 (0)