splitclient

package
v0.1.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

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

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 (*SplitClientCertificate) VerifySignature

func (s *SplitClientCertificate) VerifySignature(pub *rsa.PublicKey) error

func (*SplitClientCertificate) X509

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL