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 ParseJWT(token 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)
- func ToTLSA(selector, mtype uint8, cert *x509.Certificate) (string, error)
- func VerifyJWT(token string, key interface{}) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bech32Decode ¶
Bech32Decode decodes given bech32 encoded string.
func DecryptJWE ¶
DecryptJWE decrypt a JWE token.
func EncryptJWE ¶
EncryptJWE encrypts input as JWE token.
func EncryptPEM ¶
EncryptPEM returns an encrypted PEM block using the given passphrase.
func KeyToBytes ¶
KeyToBytes encodes the given crypto key as a byte array.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package bech32 is a modified version of the reference implementation of BIP173.
|
Package bech32 is a modified version of the reference implementation of BIP173. |
Click to show internal directories.
Click to hide internal directories.