Documentation
¶
Overview ¶
Package crypto implements common crypto operations used to verify TDX quotes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildECDSAPublicKey ¶
BuildECDSAPublicKey builds an ECDSA public key from a byte slice.
func MustParsePEMCertificate ¶
func MustParsePEMCertificate(certPEM []byte) *x509.Certificate
MustParsePEMCertificate parses a single certificate from a PEM-encoded byte slice. If multiple certificates are present, only the first one is returned. It panics if the certificate is invalid or the PEM data contains no certificates.
func ParsePEMCertificateChain ¶
func ParsePEMCertificateChain(certChainPEM []byte) ([]*x509.Certificate, error)
ParsePEMCertificateChain parses a certificate chain from a PEM-encoded byte slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.