Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyBits = 2048 PrivateBlock = pem.Block{ Headers: nil, Type: "RSA PRIVATE KEY", } PublicBlock = pem.Block{ Headers: nil, Type: "PUBLIC KEY", } ErrMustBePEMEncoded = errors.New("Invalid Key: Key must be PEM Encoded PKCS1.") ErrNotRSAPrivateKey = errors.New("Key is not a valid RSA private key.") ErrNotRSAPublicKey = errors.New("Key is not a valid RSA public key.") )
Functions ¶
func RSASingletonPrivate ¶
func RSASingletonPrivate() []byte
func RSASingletonPublic ¶
func RSASingletonPublic() []byte
Types ¶
type RSAKey ¶
type RSAKey struct {
// contains filtered or unexported fields
}
func GetRSAKeySingleton ¶
func GetRSAKeySingleton() *RSAKey
func (*RSAKey) Key ¶
func (m *RSAKey) Key() *rsa.PrivateKey
Click to show internal directories.
Click to hide internal directories.