diff options
author | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-14 05:55:51 +0800 |
---|---|---|
committer | MITSUNARI Shigeo <herumi@nifty.com> | 2017-06-14 05:55:51 +0800 |
commit | f84c000e102ed889a607a63819e305798359418a (patch) | |
tree | 1e62d4f6cf93399d03bca29bc5dfd4de6324617a /go/bls/bls.go | |
parent | 4bd6d96b71964c06fa710e591ee96e8c0282c1a9 (diff) | |
download | dexon-bls-f84c000e102ed889a607a63819e305798359418a.tar dexon-bls-f84c000e102ed889a607a63819e305798359418a.tar.gz dexon-bls-f84c000e102ed889a607a63819e305798359418a.tar.bz2 dexon-bls-f84c000e102ed889a607a63819e305798359418a.tar.lz dexon-bls-f84c000e102ed889a607a63819e305798359418a.tar.xz dexon-bls-f84c000e102ed889a607a63819e305798359418a.tar.zst dexon-bls-f84c000e102ed889a607a63819e305798359418a.zip |
add blsDHKeyExchange
Diffstat (limited to 'go/bls/bls.go')
-rw-r--r-- | go/bls/bls.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/go/bls/bls.go b/go/bls/bls.go index 2812697..61a96f5 100644 --- a/go/bls/bls.go +++ b/go/bls/bls.go @@ -288,3 +288,9 @@ func (sign *Sign) Verify(pub *PublicKey, m string) bool { func (sign *Sign) VerifyPop(pub *PublicKey) bool { return C.blsVerifyPop(sign.getPointer(), pub.getPointer()) == 1 } + +// DHKeyExchange -- +func DHKeyExchange(sec *SecretKey, pub *PublicKey) (out PublicKey) { + C.blsDHKeyExchange(out.getPointer(), sec.getPointer(), pub.getPointer()) + return out +} |