]> Cypherpunks repositories - gostls13.git/commit
crypto/elliptic: add Name field to CurveParams struct
authorDavid Leon Gil <coruus@gmail.com>
Sat, 27 Dec 2014 02:24:39 +0000 (18:24 -0800)
committerAdam Langley <agl@golang.org>
Mon, 12 Jan 2015 22:08:49 +0000 (22:08 +0000)
commit081bc6b226f1df783f13657251cf4d4148179c25
treeaea6d19aded457c7ad56dda07d0578f54da0221f
parent1cd347b18b5a6c17f4e98f25fd182ff66841146f
crypto/elliptic: add Name field to CurveParams struct

And add names for the curve implemented in crypto/elliptic.

This permits a safer alternative to switching on BitSize
for code that implements curve-dependent cryptosystems.
(E.g., ECDSA on P-xxx curves with the matched SHA-2
instances.)

Change-Id: I653c8f47506648028a99a96ebdff8389b2a95fc1
Reviewed-on: https://go-review.googlesource.com/2133
Reviewed-by: Adam Langley <agl@golang.org>
src/crypto/elliptic/elliptic.go
src/crypto/elliptic/p224.go
src/crypto/elliptic/p256.go