shithub: riscv

Download patch

ref: 62d310864669b0277e9ab506f0cf217c0a16b0dd
parent: ef8cbbba03de2e3785a6170e9e7c4f6ca5f4aa78
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Oct 30 16:32:03 EDT 2016

ape/libsec: add secp384r1 curve parameters for tls

--- a/sys/include/ape/libsec.h
+++ b/sys/include/ape/libsec.h
@@ -543,6 +543,7 @@
 /* curves */
 void	secp256r1(mpint *p, mpint *a, mpint *b, mpint *x, mpint *y, mpint *n, mpint *h);
 void	secp256k1(mpint *p, mpint *a, mpint *b, mpint *x, mpint *y, mpint *n, mpint *h);
+void	secp384r1(mpint *p, mpint *a, mpint *b, mpint *x, mpint *y, mpint *n, mpint *h);
 
 DigestState*	ripemd160(uchar *, ulong, uchar *, DigestState *);
 
--- a/sys/src/ape/lib/sec/port/mkfile
+++ b/sys/src/ape/lib/sec/port/mkfile
@@ -37,9 +37,10 @@
 	ccpoly.c\
 	tsmemcmp.c\
 	secp256r1.c\
+	secp384r1.c\
 	secp256k1.c\
 
-CLEANFILES=secp256r1.c secp256k1.c jacobian.c
+CLEANFILES=secp256r1.c secp384r1.c secp256k1.c jacobian.c
 
 ALLOFILES=${CFILES:%.c=%.$O}