shithub: riscv

Download patch

ref: b7f2aed0f25b8222ee72973e3a75f551c5d3c456
parent: ad637845a8635dd0da6236575e7a31505e775b00
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Feb 6 02:19:31 EST 2016

libsec: mpconv -> mpfmt

--- a/sys/src/libsec/port/egtest.c
+++ b/sys/src/libsec/port/egtest.c
@@ -9,7 +9,7 @@
 	mpint *m, *gamma, *delta, *in, *out;
 	int plen, shift;
 
-	fmtinstall('B', mpconv);
+	fmtinstall('B', mpfmt);
 
 	sk = egprivalloc();
 	sk->pub.p = uitomp(2357, nil);
--- a/sys/src/libsec/port/primetest.c
+++ b/sys/src/libsec/port/primetest.c
@@ -10,7 +10,7 @@
 	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