Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParsePEM ¶
ParsePEM extracts the set of byte blocks from a PEM "ascii-armoured" file. These are expected to be DER encodings of cryptographic objects
func ParsePrivateKey ¶
func ParsePrivateKey(der []byte) (crypto.PrivateKey, error)
func ParsePublicKey ¶
ParsePublicKey extracts the public key from the given cryptographic object. That object is expected to be the DER encoding of: * an x509 encoding (ie ASN.1 serialization) of a public key * a PKCS#1 (ie ASN.1 encoding) containing a public key * an x509 encoding (ie ASN.1 serialization) of a certificate * a PKCS#1 (ie ASN.1 encoding) containing a private key * a PKCS#8 (ie ASN.1 encoding) containing a private key * a SEC 1 (ie ASN.1 encoding) containing an EC private key
Types ¶
type Jwk ¶
func PrivateKey2Printable ¶
func PrivateKey2Printable(key crypto.PrivateKey) (Jwk, error)
Click to show internal directories.
Click to hide internal directories.