Documentation ¶
Index ¶
- Variables
- func CreateKeyPair(bitsSizeOfKey int) (asserts.PrivateKey, *rsa.PrivateKey)
- func ExportRsaPrivateKeyAsPemStr(privkey *rsa.PrivateKey) string
- func ExportRsaPublicKeyAsPemStr(pubkey *rsa.PublicKey) (string, error)
- func GetPrivateKeyFromPEMFile(keyPath string) asserts.PrivateKey
- func GetPublicKeyPEM(key *rsa.PrivateKey) (string, error)
- func ParseRSAPrivateKeyFromPEM(key []byte) (*rsa.PrivateKey, error)
- type Key
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateKeyPair ¶
func CreateKeyPair(bitsSizeOfKey int) (asserts.PrivateKey, *rsa.PrivateKey)
func ExportRsaPrivateKeyAsPemStr ¶
func ExportRsaPrivateKeyAsPemStr(privkey *rsa.PrivateKey) string
func GetPrivateKeyFromPEMFile ¶
func GetPrivateKeyFromPEMFile(keyPath string) asserts.PrivateKey
func GetPublicKeyPEM ¶
func GetPublicKeyPEM(key *rsa.PrivateKey) (string, error)
func ParseRSAPrivateKeyFromPEM ¶
func ParseRSAPrivateKeyFromPEM(key []byte) (*rsa.PrivateKey, error)
from: "github.com/dgrijalva/jwt-go" Parse PEM encoded PKCS1 or PKCS8 private key
Types ¶
Click to show internal directories.
Click to hide internal directories.