Documentation
¶
Index ¶
- Variables
- func IsDependencyMissing(err error) bool
- func IsRevoked(in RevocationList, keyID string, at time.Time) bool
- func KeyID(pub ed25519.PublicKey) string
- func NormalizeKeyID(id string, pub ed25519.PublicKey) string
- func Sign(r *record.Record, key SigningKey) (*record.Record, error)
- func SignRecordCosign(r *record.Record, keyPath string) (*record.Record, error)
- func Verify(r *record.Record, pub PublicKey) error
- func VerifyDigest(sig Signature, digest string, pub PublicKey) error
- func VerifyDigestCosign(sig Signature, digest string, opts CosignVerifyOpts) error
- func VerifyRecordCosign(r *record.Record, opts CosignVerifyOpts) error
- func VerifyRevocationList(in RevocationList, pub PublicKey) error
- type CosignVerifyOpts
- type PublicKey
- type RevocationEntry
- type RevocationList
- type Signature
- type SigningKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDependencyMissing = errors.New("dependency missing")
Functions ¶
func IsDependencyMissing ¶
func SignRecordCosign ¶
func VerifyDigestCosign ¶
func VerifyDigestCosign(sig Signature, digest string, opts CosignVerifyOpts) error
func VerifyRecordCosign ¶
func VerifyRecordCosign(r *record.Record, opts CosignVerifyOpts) error
func VerifyRevocationList ¶
func VerifyRevocationList(in RevocationList, pub PublicKey) error
Types ¶
type CosignVerifyOpts ¶
type RevocationEntry ¶
type RevocationList ¶
type RevocationList struct {
Version string `json:"version"`
CreatedAt string `json:"created_at"`
Revoked []RevocationEntry `json:"revoked"`
Signature Signature `json:"signature"`
}
func SignRevocationList ¶
func SignRevocationList(in RevocationList, key SigningKey) (RevocationList, error)
type Signature ¶
type Signature struct {
Alg string `json:"alg"`
KeyID string `json:"key_id"`
Sig string `json:"sig"`
SignedDigest string `json:"signed_digest"`
}
func SignDigest ¶
func SignDigest(digest string, key SigningKey) (Signature, error)
type SigningKey ¶
type SigningKey struct {
Private ed25519.PrivateKey
Public ed25519.PublicKey
KeyID string
}
func GenerateKey ¶
func GenerateKey() (SigningKey, error)
Click to show internal directories.
Click to hide internal directories.