Documentation ¶
Index ¶
- func ConvertECPrivateKeyPEM(inPEM []byte) ([]byte, error)
- func ConvertToECPrivateKeyPEM(inPEM []byte) ([]byte, error)
- func DecryptPEMBlock(block *pem.Block, password []byte) ([]byte, error)
- func EncryptPEMBlock(data, password []byte) (*pem.Block, error)
- func IsEncryptedPEMBlock(block *pem.Block) bool
- func ParsePrivateKeyPEMWithPassword(pemBytes, password []byte) (crypto.Signer, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertECPrivateKeyPEM ¶
ConvertECPrivateKeyPEM takes an EC Private Key as input and returns PKCS#8 version of it
func ConvertToECPrivateKeyPEM ¶
ConvertToECPrivateKeyPEM takes an unencrypted PKCS#8 PEM and converts it to EC Private Key
func DecryptPEMBlock ¶
DecryptPEMBlock requires PKCS#8 PEM Block and password to decrypt and return unencrypted der []byte
func EncryptPEMBlock ¶
EncryptPEMBlock takes DER-format bytes and password to return an encrypted PKCS#8 PEM-block
func IsEncryptedPEMBlock ¶
IsEncryptedPEMBlock checks if a PKCS#8 PEM-block is encrypted or not
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.