Documentation ¶
Overview ¶
Package keyutil provides commonly used test functions to generate RSA keys.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadRSAPrivateKey ¶
func ReadRSAPrivateKey(rsaPrivateKeyPEM string) (*rsa.PrivateKey, error)
ReadRSAPrivateKey encrypts a PEM encoding RSA key string and returns the decoded RSA key.
func TestGenerateRSAPrivateKey ¶
func TestGenerateRSAPrivateKey(tb testing.TB) (string, *rsa.PrivateKey)
TestGenerateRsaPrivateKey generates a rsa Key for testing use. It returns the PEM decoded private key string and the rsa.PrivateKey it itself.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.