Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Verifier ¶
type Verifier interface {
VerifySignature(checksum, signature []byte, h crypto.Hash, publicKey crypto.PublicKey) error
}
Verifier defines an interface for verifying an update's signature with a public key.
func NewDSAVerifier ¶
func NewDSAVerifier() Verifier
NewDSAVerifier returns a Verifier that uses the DSA algorithm to verify updates.
func NewECDSAVerifier ¶
func NewECDSAVerifier() Verifier
NewECDSAVerifier returns a Verifier that uses the ECDSA algorithm to verify updates.
func NewRSAVerifier ¶
func NewRSAVerifier() Verifier
NewRSAVerifier returns a Verifier that uses the RSA algorithm to verify updates.
Click to show internal directories.
Click to hide internal directories.