package
0.0.0-20190808211627-1161409779f0
Repository: https://github.com/silvio/containerd.git
Documentation: pkg.go.dev

# Functions

CertifyKey certifies a public key using the given CA's private key and cert; The certificate template for the public key is optional.
CreateECDSATestKey creates and elliptic curve key for the given curve and returns the public and private key in DER format.
CreateRSAKey creates an RSA key.
CreateRSATestKey creates an RSA key of the given size and returns the public and private key in PEM or DER format.
CreateTestCA creates a root CA for testing.
IsCertificate returns true in case the given byte array represents an x.509 certificate.
IsGPGPrivateKeyRing returns true in case the given byte array represents a GPG private key ring file.
IsPasswordError checks whether an error is related to a missing or wrong password.
IsPrivateKey returns true in case the given byte array represents a private key It returns an error if for example the password is wrong.
IsPublicKey returns true in case the given byte array represents a public key.
ParseCertificate tries to parse a public key in DER format first and PEM format after, returning an error if the parsing failed.
ParsePrivateKey tries to parse a private key in DER format first and PEM format after, returning an error if the parsing failed.
ParsePublicKey tries to parse a public key in DER format first and PEM format after, returning an error if the parsing failed.
SortDecryptionKeys parses a list of comma separated base64 entries and sorts the data into a map.