Skip to content
Snippets Groups Projects
Commit d7b2cd26 authored by David Stainton's avatar David Stainton
Browse files

Add DeriveSecret method to PrivateKey

parent 416191ff
No related branches found
No related tags found
No related merge requests found
...@@ -191,6 +191,11 @@ func NewEmptyPrivateKey() *PrivateKey { ...@@ -191,6 +191,11 @@ func NewEmptyPrivateKey() *PrivateKey {
return new(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 // String returns a string identifying
// this type as a CTIDH private key. // this type as a CTIDH private key.
func (p *PrivateKey) String() string { func (p *PrivateKey) String() string {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment