status-go/vendor/github.com/wsddn/go-ecdh
Adam Babik 26880b83d7
Upgrade geth to 1.9.5 and Whisper (#1617)
2019-10-04 17:21:24 +02:00
..
.gitignore Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
.travis.yml Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
LICENSE Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
Readme.md Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
curve25519.go Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
ecdh.go Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00
elliptic.go Upgrade geth to 1.9.5 and Whisper (#1617) 2019-10-04 17:21:24 +02:00

Readme.md

ECDH

Build Status

This is a go implementation of elliptical curve diffie-hellman key exchange method. It supports the NIST curves (and any curves using the elliptic.Curve go interface) as well as djb's curve25519.

The library handles generating of keys, generating a shared secret, and the (un)marshalling of the elliptical curve keys into slices of bytes.

Warning and Disclaimer

I am not a cryptographer, this was written as part of a personal project to learn about cryptographic systems and protocols. No claims as to the security of this library are made, I would not advise using it for anything that requires any level of security. Pull requests or issues about security flaws are however still welcome.

Compatibility

Works with go 1.2 onwards.

TODO

  • Improve documentation