libsec: mpconv -> mpfmt
This commit is contained in:
parent
ad637845a8
commit
b7f2aed0f2
|
@ -9,7 +9,7 @@ main(void)
|
|||
mpint *m, *gamma, *delta, *in, *out;
|
||||
int plen, shift;
|
||||
|
||||
fmtinstall('B', mpconv);
|
||||
fmtinstall('B', mpfmt);
|
||||
|
||||
sk = egprivalloc();
|
||||
sk->pub.p = uitomp(2357, nil);
|
||||
|
|
|
@ -10,7 +10,7 @@ main(void)
|
|||
mpint *q = mpnew(0);
|
||||
mpint *nine = mpnew(0);
|
||||
|
||||
fmtinstall('B', mpconv);
|
||||
fmtinstall('B', mpfmt);
|
||||
strtomp("2492491", nil, 16, z); // 38347921 = x*y = (2**28-9)/7,
|
||||
// an example of 3**(n-1)=1 mod n
|
||||
strtomp("15662C00E811", nil, 16, p);// 23528569104401, a prime
|
||||
|
|
Loading…
Reference in a new issue