diff options
author | Gibheer <gibheer@gmail.com> | 2015-03-16 17:11:08 +0100 |
---|---|---|
committer | Gibheer <gibheer@gmail.com> | 2015-03-16 17:11:08 +0100 |
commit | b7f4f3ae2123301b6957498ef92d580f4b8ed105 (patch) | |
tree | ca40f2c8b76c2a3f97173f118638084f1e09290d /ecdsa.go | |
parent | 4157d8e07abed02ff4b3dd5575e70252331b2d67 (diff) |
adjust comments on ecdsa a bit
Diffstat (limited to 'ecdsa.go')
-rw-r--r-- | ecdsa.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -32,14 +32,14 @@ type ( } ) -// generate a new ecdsa private key +// Create a new ECDSA private key using the specified curve. func NewPrivateKeyEcdsa(curve elliptic.Curve) (*EcdsaPrivateKey, error) { key, err := ecdsa.GenerateKey(curve, rand.Reader) if err != nil { return nil, err } return &EcdsaPrivateKey{key}, nil } -// load the private key from the raw data +// Load the private key from the asn1 representation. func LoadPrivateKeyEcdsa(raw []byte) (*EcdsaPrivateKey, error) { key, err := x509.ParseECPrivateKey(raw) if err != nil { return nil, err } |