keybase / go-crypto

[mirror] Go supplementary cryptography libraries
https://godoc.org/golang.org/x/crypto
BSD 3-Clause "New" or "Revised" License
50 stars 20 forks source link

ECC key generation + misc fixes #68

Closed zapu closed 6 years ago

zapu commented 6 years ago

While trying to repro some user issues, I needed to create a bunch of keys with different parameters. I looked into EC key generation and turns out there was a couple of serialization issues that made it impossible to serialize key bundles with EC keys in them; and also few other issues that obscured real bugs.

This PR fixes these issues, adds experimental EC key generation function and adds a test that generates a key, serializes it, de-serializes, and then tries to encrypt that keybundle.