type crypto/elliptic.Curve
27 uses
crypto/elliptic (current package)
elliptic.go#L31: type Curve interface {
elliptic.go#L75: func GenerateKey(curve Curve, rand io.Reader) (priv []byte, x, y *big.Int, err error) {
elliptic.go#L109: func Marshal(curve Curve, x, y *big.Int) []byte {
elliptic.go#L126: func MarshalCompressed(curve Curve, x, y *big.Int) []byte {
elliptic.go#L153: func Unmarshal(curve Curve, data []byte) (x, y *big.Int) {
elliptic.go#L180: func UnmarshalCompressed(curve Curve, data []byte) (x, y *big.Int) {
elliptic.go#L212: func panicIfNotOnCurve(curve Curve, x, y *big.Int) {
elliptic.go#L240: func P224() Curve {
elliptic.go#L253: func P256() Curve {
elliptic.go#L265: func P384() Curve {
elliptic.go#L277: func P521() Curve {
params.go#L327: func matchesSpecificCurve(params *CurveParams) (Curve, bool) {
params.go#L328: for _, c := range []Curve{p224, p256, p384, p521} {
crypto/ecdsa
ecdsa.go#L41: elliptic.Curve
ecdsa.go#L101: func curveToECDH(c elliptic.Curve) ecdh.Curve {
ecdsa.go#L162: func GenerateKey(c elliptic.Curve, rand io.Reader) (*PrivateKey, error) {
ecdsa.go#L188: func generateFIPS[P ecdsa.Point[P]](curve elliptic.Curve, c *ecdsa.Curve[P], rand io.Reader) (*PrivateKey, error) {
ecdsa.go#L380: func publicKeyFromFIPS(curve elliptic.Curve, pub *ecdsa.PublicKey) (*PublicKey, error) {
ecdsa.go#L388: func privateKeyFromFIPS(curve elliptic.Curve, priv *ecdsa.PrivateKey) (*PrivateKey, error) {
ecdsa.go#L413: func pointFromAffine(curve elliptic.Curve, x, y *big.Int) ([]byte, error) {
ecdsa.go#L432: func pointToAffine(curve elliptic.Curve, p []byte) (x, y *big.Int, err error) {
ecdsa_legacy.go#L22: func generateLegacy(c elliptic.Curve, rand io.Reader) (*PrivateKey, error) {
ecdsa_legacy.go#L42: func hashToInt(hash []byte, c elliptic.Curve) *big.Int {
ecdsa_legacy.go#L200: func randFieldElement(c elliptic.Curve, rand io.Reader) (k *big.Int, err error) {
crypto/x509
sec1.go#L99: var curve elliptic.Curve
x509.go#L537: func namedCurveFromOID(oid asn1.ObjectIdentifier) elliptic.Curve {
x509.go#L551: func oidFromNamedCurve(curve elliptic.Curve) (asn1.ObjectIdentifier, bool) {