Documentation ¶
Overview ¶
Code taken verbatim from the golang source code
Lines in this file taken from source code have references to the original lines
Index ¶
- type SplitClientCertificate
- func (c *SplitClientCertificate) Bytes() ([]byte, error)
- func (s *SplitClientCertificate) PEM() (string, error)
- func (s *SplitClientCertificate) Sign(rand io.Reader, parent *x509.Certificate, pub *rsa.PublicKey, ...) error
- func (s *SplitClientCertificate) VerifySignature(pub *rsa.PublicKey) error
- func (c *SplitClientCertificate) X509() (*x509.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SplitClientCertificate ¶
type SplitClientCertificate struct { TBSCertificate tbsCertificate SignatureAlgorithm pkix.AlgorithmIdentifier SignatureValue asn1.BitString }
This structure reflects the ASN.1 structure of X.509 certificates
func Generate ¶
func Generate(rand io.Reader, template, parent *x509.Certificate, pub *rsa.PublicKey, priv *keysplitting.PrivateKeyShard) (*SplitClientCertificate, error)
func (*SplitClientCertificate) Bytes ¶
func (c *SplitClientCertificate) Bytes() ([]byte, error)
func (*SplitClientCertificate) PEM ¶
func (s *SplitClientCertificate) PEM() (string, error)
func (*SplitClientCertificate) Sign ¶
func (s *SplitClientCertificate) Sign(rand io.Reader, parent *x509.Certificate, pub *rsa.PublicKey, priv *keysplitting.PrivateKeyShard) error
func (*SplitClientCertificate) VerifySignature ¶
func (s *SplitClientCertificate) VerifySignature(pub *rsa.PublicKey) error
func (*SplitClientCertificate) X509 ¶
func (c *SplitClientCertificate) X509() (*x509.Certificate, error)
Click to show internal directories.
Click to hide internal directories.