]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/2/ec
add portable AES-GCM (Galois/Counter Mode) implementation to libsec and devtls
[plan9front.git] / sys / man / 2 / ec
index 431c15cfa614fef82aab328011d9469d719016dc..b4e0cc19ebb893f491704dfb434c0f3c95987981 100644 (file)
@@ -19,6 +19,12 @@ ecdsaverify \- elliptic curve cryptography
 .B #include <libsec.h>
 .PP
 .B
+void   ecdominit(ECdomain *dom, void (*init)(mpint *p, mpint *a, mpint *b, mpint *x, mpint *y, mpint *n, mpint *h));
+.PP
+.B
+void   ecdomfree(ECdomain *dom);
+.PP
+.B
 void   ecassign(ECdomain *dom, ECpoint *old, ECpoint *new);
 .PP
 .B
@@ -54,6 +60,19 @@ Points on the curve are represented by
 .B ECpoint
 structs.
 .PP
+.B ecdominit
+initializes a
+.B ECdomain
+struct and calls the
+.B init
+function such as
+.B secp256r1
+which fills in the parameters of the curve.
+.PP
+.B ecdomfree
+frees the parameters of the curve and zeros the struct. It does
+not free the memory of the struct itself.
+.PP
 .BR ecassign ", " ecadd " and " ecmul
 are analogous to their counterparts in
 .IR mp (2).