Lines Matching full:curve
84 publicKeyBytes = elliptic.Marshal(pub.Curve, pub.X, pub.Y)
85 oid, ok := oidFromNamedCurve(pub.Curve)
87 return nil, pkix.AlgorithmIdentifier{}, errors.New("x509: unsupported elliptic curve")
475 // RFC 5480, 2.1.1.1. Named Curve
478 // iso(1) identified-organization(3) certicom(132) curve(0) 33 }
485 // iso(1) identified-organization(3) certicom(132) curve(0) 34 }
488 // iso(1) identified-organization(3) certicom(132) curve(0) 35 }
498 func namedCurveFromOID(oid asn1.ObjectIdentifier) elliptic.Curve {
512 func oidFromNamedCurve(curve elliptic.Curve) (asn1.ObjectIdentifier, bool) {
513 switch curve {
1064 return nil, errors.New("x509: unsupported elliptic curve")
1068 return nil, errors.New("x509: failed to unmarshal elliptic curve point")
1071 Curve: namedCurve,
1990 switch pub.Curve {
2001 err = errors.New("x509: unknown elliptic curve")