func LoadJSONWebKey(json []byte, pub bool) (*jose.JSONWebKey, error)
LoadJSONWebKey returns a *jose.JSONWebKey for a given JSON string.
func LoadPrivateKey(data []byte) (interface{}, error)
LoadPrivateKey loads a private key from PEM/DER/JWK-encoded data.
func LoadPublicKey(data []byte) (interface{}, error)
LoadPublicKey loads a public key from PEM/DER/JWK-encoded data.