Documentation ¶
Index ¶
Constants ¶
View Source
const ( // BlockPublicKey contains the value which defines a Public Key in a PEM block BlockPublicKey = "PUBLIC KEY" // BlockPrivateKey contains the value which defines a PrivateKey in a PEM block BlockPrivateKey = "RSA PRIVATE KEY" )
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
GenerateRandomString of given length with crypto/rand
func UnmarshalPrivateKeyFromFile ¶
func UnmarshalPrivateKeyFromFile(file string) (*rsa.PrivateKey, error)
UnmarshalPrivateKeyFromFile reads the given file and returns an RSA PrivateKey
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.