From f84c000e102ed889a607a63819e305798359418a Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 14 Jun 2017 06:55:51 +0900 Subject: add blsDHKeyExchange --- src/bls_c.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/bls_c.cpp b/src/bls_c.cpp index 27cf226..64ff5bc 100644 --- a/src/bls_c.cpp +++ b/src/bls_c.cpp @@ -391,3 +391,8 @@ size_t blsSignatureGetHexStr(char *buf, size_t maxBufSize, const blsSignature *s { return mclBnG1_getStr(buf, maxBufSize, &sig->v, 16); } +void blsDHKeyExchange(blsPublicKey *out, const blsSecretKey *sec, const blsPublicKey *pub) +{ + mclBnG2_mul(&out->v, &pub->v, &sec->v); +} + -- cgit v1.2.3