package
Version:
v1.65.2
Opens a new window with list of versions in this module.
Published: Mar 25, 2021
License: BSD-3-Clause
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 8
Opens a new window with list of known importers.
Documentation
¶
func DERToPublicKey(raw []byte) (pub interface{}, err error)
DERToPublicKey DER字符转成公钥
func PrivateKeyToByte(privateKey interface{}) ([]byte, error)
func PrivateKeyToPEM(privateKey interface{}, pwd []byte) ([]byte, error)
PrivateKeyToPEM 私钥转pem
func PublicKeyToPEM(publicKey interface{}, pwd []byte) ([]byte, error)
PublicKeyToPEM 公钥转pem
Source Files
¶
Click to show internal directories.
Click to hide internal directories.