Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKeyPair ¶
func SavePrivatePEM ¶
func SavePrivatePEM(fileName string, key *rsa.PrivateKey)
func SavePublicPEM ¶
Types ¶
type Signer ¶
type Signer interface { // Sign returns raw signature for the given data. This method // will apply the hash specified for the keytype to the data. Sign(data []byte) ([]byte, error) }
A Signer is can create signatures that verify against a public key.
func ParsePrivateKey ¶
ParsePrivateKey parses a PEM encoded private key.
Click to show internal directories.
Click to hide internal directories.