Documentation ¶
Overview ¶
Package signature implements generation and verification of signatures used by KeyStore to authenticate stored key data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAlgorithms = errors.New("no key ring signing algorithms") ErrNoSignature = errors.New("missing key ring signature") ErrSignatureError = errors.New("invalid key ring signature") )
Errors produced by signature verification:
Functions ¶
This section is empty.
Types ¶
type Algorithm ¶
type Algorithm interface { AlgorithmOID() encodingASN1.ObjectIdentifier Sign(data, context []byte) []byte Verify(signature, data, context []byte) bool }
Algorithm interface defines a particular signing algorithm for Notary. It signs and verifies raw byte data. Each algorithm is identified by an ASN.1 Object Identifier.
type Notary ¶
type Notary struct {
// contains filtered or unexported fields
}
Notary cryptographically signs provided ASN.1 data.
Click to show internal directories.
Click to hide internal directories.