Documentation
¶
Index ¶
- func GenerateToken(privateKey *rsa.PrivateKey) (string, error)
- func MarshalPrivateKey(privateKey *rsa.PrivateKey) []byte
- func MarshalPublicKey(publicKey crypto.PublicKey) []byte
- func UnmarshalRSAPrivateKey(pemPrivateKey string) (key *rsa.PrivateKey, err error)
- func UnmarshalRSAPublicKey(pemPubKey string) (key *rsa.PublicKey, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func GenerateToken(privateKey *rsa.PrivateKey) (string, error)
func MarshalPrivateKey ¶
func MarshalPrivateKey(privateKey *rsa.PrivateKey) []byte
func MarshalPublicKey ¶
func UnmarshalRSAPrivateKey ¶
func UnmarshalRSAPrivateKey(pemPrivateKey string) (key *rsa.PrivateKey, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.