Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotECDSAPrivateKey = errors.New("not ECDSA private key")
ErrNotECDSAPrivateKey occurs when the private key is not a ECDSA one.
View Source
var ErrNotPEMEncoded = errors.New("not pem encoded")
ErrNotPEMEncoded occurs when the content is not PEM encoded.
Functions ¶
func HMACSHA256String ¶
HMACSHA256String returns the hex-encoded string of HMAC-SHA256 code of body using secret as key.
func ParseAppleP8PrivateKey ¶
func ParseAppleP8PrivateKey(content []byte) (privateKey *ecdsa.PrivateKey, err error)
ParseAppleP8PrivateKey parses the .p8 private key generated by Apple.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.