aboutsummaryrefslogtreecommitdiffstats
path: root/man/zmodsqr.3
blob: ba33aab48173a0907eb5848b8e27218e1b9f20ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.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.
.P
See
.BR zmod (3)
for details on modulation.
.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)