package
6.0.2+incompatible
Repository: https://github.com/aoscloud/aos_common.git
Documentation: pkg.go.dev

# Functions

CertToPEM is a utility function returns a PEM encoded x509 Certificate.
CheckCertificate checks if certificate matches key.
LoadCertificateFromFile loads certificate from file.
LoadPrivateKeyFromFile loads private key from file.
NewCryptoContext creates new crypto context.
ParsePKCS11Url extracts library, token, label, id, user pin from pkcs url.
PEMToX509Cert parses PEM data to x509 certificate structures.
PEMToX509Key parses PEM data to x509 key structures.
PEMToX509PrivateKey parses PEM data to x509 private key structures.
PrivateKeyToPEM converts private key to PEM format.
SaveCertificateToFile saves certificate to file.
SavePrivateKeyToFile saves private key to file.

# Constants

Crypto algorithm.
Crypto algorithm.
PEM block types.
PEM block types.
PEM block types.
PEM block types.
PEMExt PEM format extension.
URL schemes.
URL schemes.
URL schemes.

# Variables

DefaultPKCS11Library used if not specified in the URL.
DefaultTPMDevice used if not specified in the URL.

# Structs

CryptoContext crypt context.