diff options
| author | Mattias Andrée <maandree@kth.se> | 2016-03-03 10:33:29 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2016-03-03 10:35:22 +0100 |
| commit | c0bc7b6e2d090554c9d940bc3614e089a688503a (patch) | |
| tree | a1b85a760ec1e18bdd0ceac15b802bdf6409e625 /man/zmodsqr.3 | |
| parent | znot man page: notes on representation and tendness toward zero (diff) | |
| download | libzahl-c0bc7b6e2d090554c9d940bc3614e089a688503a.tar.gz libzahl-c0bc7b6e2d090554c9d940bc3614e089a688503a.tar.bz2 libzahl-c0bc7b6e2d090554c9d940bc3614e089a688503a.tar.xz | |
Add zabs, zadd, zdiv, zmod, zmodmul, zmodpow, zneg, zpow, zsub, and the newly introduced zmodsqr
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'man/zmodsqr.3')
| -rw-r--r-- | man/zmodsqr.3 | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/man/zmodsqr.3 b/man/zmodsqr.3 new file mode 100644 index 0000000..c54cc01 --- /dev/null +++ b/man/zmodsqr.3 @@ -0,0 +1,45 @@ +.TH ZMODSQR 3 libzahl +.SH NAME +zsqr - Calculate a modular square of a big integer +.SH SYNOPSIS +.nf +#include <zahl.h> + +void zmodsqr(z_t \fIsquare\fP, z_t \fIinteger\fP, z_t \fImodulator\fP); +.fi +.SH DESCRIPTION +.B zmodsqr +calculates the square of an +.IR integer , +modulus a +.IR modulator , +and stores the result in +.IR square . +That is, +.I square +gets +.IR integer ². +Mod +.IR modulator . +.P +It is safe to call +.B zmodsqr +with non-unique parameters. +.SH RATIONALE +See rationle for +.BR zmodmul (3), +and +.BR zsqr (3). +.SH SEE ALSO +.BR zmodmul (3), +.BR zmodpow (3), +.BR zsqr (3), +.BR zstr (3), +.BR zadd (3), +.BR zsub (3), +.BR zmul (3), +.BR zdiv (3), +.BR zmod (3), +.BR zneg (3), +.BR zabs (3), +.BR zpow (3) |
