Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RSAPrivateKey ¶
type RSAPrivateKey struct {
*rsa.PrivateKey
}
type RSAPublicKey ¶
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 LoadPrivateKeyFromFile ¶
loadPrivateKey loads an parses a PEM encoded private key file.
type Verifier ¶
type Verifier interface { // Sign returns raw signature for the given data. This method // will apply the hash specified for the keytype to the data. Verify(data []byte, sig []byte) error }
A Verifier is can validate signatures that verify against a public key.
func LoadPublicKeyFromFile ¶
loadPrivateKey loads an parses a PEM encoded private key file.
func LoadPublicKeyFromString ¶
Click to show internal directories.
Click to hide internal directories.