aboutsummaryrefslogtreecommitdiffstats
path: root/src/bls_c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/bls_c.cpp')
-rw-r--r--src/bls_c.cpp5
1 files changed, 5 insertions, 0 deletions
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);
+}
+