Documentation ¶
Index ¶
- func Bech32Decode(in string) (interface{}, error)
- func DecryptJWE(key, token string) (interface{}, error)
- func EncryptJWE(key string, payload interface{}) (string, error)
- func EncryptPEM(pemData, passphrase string) (string, error)
- func FromJWK(jwk string) (interface{}, error)
- func Key(keyType string) (string, error)
- func KeyToBytes(key interface{}) ([]byte, error)
- func Keypair(keyType string) (interface{}, error)
- func ToJWK(key interface{}) (string, error)
- func ToJWS(payload, privkey interface{}) (string, error)
- func ToPEM(key interface{}) (string, error)
- func ToSSH(key interface{}) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bech32Decode ¶ added in v0.1.12
Bech32Decode decodes given bech32 encoded string.
func DecryptJWE ¶ added in v0.1.12
DecryptJWE decrypt a JWE token.
func EncryptJWE ¶ added in v0.1.12
EncryptJWE encrypts input as JWE token.
func EncryptPEM ¶
EncryptPEM returns an encrypted PEM block using the given passphrase.
func KeyToBytes ¶ added in v0.1.12
KeyToBytes encodes the given crypto key as a byte array.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.