Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GpgSigningKey ¶
GpgSigningKey is a struct that implements SigningKey interface for GPG keys
func (*GpgSigningKey) CreateSignature ¶
func (sk *GpgSigningKey) CreateSignature(contentToSign []byte) ([]byte, error)
CreateSignature creates a gpg signature
func (*GpgSigningKey) Verify ¶
func (sk *GpgSigningKey) Verify(signature, signedText []byte) error
Verify method verifies whether a signature has been created by this signing key
type SSHSigningKey ¶
SSHSigningKey is a struct that implements SigningKey interface for SSH keys
func (*SSHSigningKey) CreateSignature ¶
func (sk *SSHSigningKey) CreateSignature(contentToSign []byte) ([]byte, error)
CreateSignature creates an SSH signature
func (*SSHSigningKey) Verify ¶
func (sk *SSHSigningKey) Verify(signatureText, signedText []byte) error
Verify method verifies whether a signature has been created by this signing key
type SigningKey ¶
SigningKey is the common interface interface of SSH and GPG signing keys
func ParseSigningKey ¶
func ParseSigningKey(path string) (SigningKey, error)
ParseSigningKey parses a signing key and returns either GPG or SSH key
Click to show internal directories.
Click to hide internal directories.