Skip to content
/ ecdh Public
forked from aead/ecdh

A generic ECDH implementation

License

Notifications You must be signed in to change notification settings

hurae/ecdh

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Godoc Reference

Fork of github.com/aead/ecdh

The ECDH key exchange

Elliptic curve Diffie–Hellman (ECDH) is an anonymous key agreement protocol that allows two parties,

each having an elliptic curve public–private key pair, to establish a shared secret over an insecure channel.

This package implements a generic interface for ECDH and supports the generic crypto/elliptic and the x/crypto/curve25519 out of the box.

Installation

Install in your GOPATH: go get -u github.com/hurae/ecdh

Difference:

  • always return a []byte type public key
  • use non-deprecated new X25519 API.
  • implement Check for Curve25519, just the same check inside golang.org/x/crypto/curve25519. That means length 32 and not all zero.
  • ComputeSecret will now pass the error which golang.org/x/crypto/curve25519 gives out.

About

A generic ECDH implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%