Home | History | Annotate | Download | only in x509

Lines Matching refs:private

18 // ecPrivateKey reflects an ASN.1 Elliptic Curve Private Key Structure.
31 // ParseECPrivateKey parses an ASN.1 Elliptic Curve Private Key Structure.
36 // MarshalECPrivateKey marshals an EC private key into ASN.1, DER format.
55 // parseECPrivateKey parses an ASN.1 Elliptic Curve Private Key Structure.
58 // that may exist in the EC private key structure.
62 return nil, errors.New("x509: failed to parse EC private key: " + err.Error())
65 return nil, fmt.Errorf("x509: unknown EC private key version %d", privKey.Version)
81 return nil, errors.New("x509: invalid elliptic curve private key value")
89 // Some private keys have leading zero padding. This is invalid
93 return nil, errors.New("x509: invalid private key length")
98 // Some private keys remove all leading zeros, this is also invalid