Documentation ¶
Index ¶
- func DecodeCertFromSignature(signByte []byte) ([]byte, []byte, error)
- func DirMissingOrEmpty(path string) (bool, error)
- func EncodeCertToSignature(signByte []byte, cert []byte) ([]byte, error)
- func GetPublicKeySKIFromCert(cert []byte, signType int) (string, error)
- func PrivKeyByteFromRaw(raw []byte, signType int) ([]byte, error)
- func ReadFile(file string) ([]byte, error)
- func ReadPemFile(file string) ([]byte, error)
- func SKI(curve elliptic.Curve, x, y *big.Int) (ski []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeCertFromSignature ¶
DecodeCertFromSignature 从签名中解码证书
func EncodeCertToSignature ¶
EncodeCertToSignature 证书编码进签名
func GetPublicKeySKIFromCert ¶
GetPublicKeySKIFromCert 从cert字节中获取公钥ski
func PrivKeyByteFromRaw ¶
PrivKeyByteFromRaw pem结构转成byte类型私钥
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.