diff --git a/binding.go b/binding.go index 986174dd5ccab0adea6934e1ce2e47250d5dc143..c30c4e76481ae9e7d2ddd6b1131c62faca613f71 100644 --- a/binding.go +++ b/binding.go @@ -191,6 +191,11 @@ func NewEmptyPrivateKey() *PrivateKey { return new(PrivateKey) } +// DeriveSecret derives a shared secret. +func (p *PrivateKey) DeriveSecret(publicKey *PublicKey) []byte { + return DeriveSecret(p, publicKey) +} + // String returns a string identifying // this type as a CTIDH private key. func (p *PrivateKey) String() string {