From 62d310864669b0277e9ab506f0cf217c0a16b0dd Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 30 Oct 2016 20:32:03 +0100 Subject: [PATCH] ape/libsec: add secp384r1 curve parameters for tls --- sys/include/ape/libsec.h | 1 + sys/src/ape/lib/sec/port/mkfile | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/include/ape/libsec.h b/sys/include/ape/libsec.h index 8c7fb7c23..11e8b5f61 100644 --- a/sys/include/ape/libsec.h +++ b/sys/include/ape/libsec.h @@ -543,6 +543,7 @@ char* X509ecdsaverify(uchar *sig, int siglen, ECdomain *dom, ECpub *pub); /* 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 *); diff --git a/sys/src/ape/lib/sec/port/mkfile b/sys/src/ape/lib/sec/port/mkfile index a87f0237c..bbfcb6b51 100644 --- a/sys/src/ape/lib/sec/port/mkfile +++ b/sys/src/ape/lib/sec/port/mkfile @@ -37,9 +37,10 @@ CFILES = des.c desmodes.c desECB.c desCBC.c des3ECB.c des3CBC.c\ 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}