Documentation ¶
Index ¶
- func AESToPEM(raw []byte) []byte
- func DerToPrivateKey(der []byte) (*ecdsa.PrivateKey, error)
- func DerToPublicKey(der []byte) (*ecdsa.PublicKey, error)
- func GetRandomBytes(size int) ([]byte, error)
- func PEMToAES(raw []byte) ([]byte, error)
- func PEMToPrivateKey(raw []byte) (*ecdsa.PrivateKey, error)
- func PEMToPublicKey(raw []byte) (*ecdsa.PublicKey, error)
- func PrivateKeyToDER(privateKey *ecdsa.PrivateKey) ([]byte, error)
- func PrivateKeyToPEM(privateKey *ecdsa.PrivateKey) ([]byte, error)
- func PublicKeyToPEM(publickey *ecdsa.PublicKey) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DerToPrivateKey ¶
func DerToPrivateKey(der []byte) (*ecdsa.PrivateKey, error)
func GetRandomBytes ¶
func PEMToPrivateKey ¶
func PEMToPrivateKey(raw []byte) (*ecdsa.PrivateKey, error)
func PrivateKeyToDER ¶
func PrivateKeyToDER(privateKey *ecdsa.PrivateKey) ([]byte, error)
func PrivateKeyToPEM ¶
func PrivateKeyToPEM(privateKey *ecdsa.PrivateKey) ([]byte, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.