Documentation
¶
Overview ¶
Package seal provides ed25519 detached signatures over a package's SHA256SUMS (plan §7, §19). SHA256SUMS already covers the entire sealed zone, so signing it authenticates the whole package. Uses only crypto/ed25519 from the standard library — no third-party crypto.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateKey ¶
GenerateKey writes a new ed25519 keypair as PEM files.
func Sign ¶
Sign creates SEAL.sig over the package's SHA256SUMS using the private key at keyPath. The signature file records the public key so verify is self-contained; chain-of-custody records who signed out of band.
func SignFile ¶ added in v0.2.0
SignFile writes a detached ed25519 signature for an arbitrary file (used for knowledge/rule pack distribution, plan D5).
func VerifyFileSig ¶ added in v0.2.0
VerifyFileSig verifies a detached signature against a trusted public key PEM. Returns an error describing the failure; nil means valid.
Types ¶
type VerifyResult ¶
VerifyResult reports signature verification.
func Verify ¶
func Verify(pkgDir, expectedPubHex string) (*VerifyResult, error)
Verify checks SEAL.sig against the current SHA256SUMS. Optionally pins an expected public key (hex); if provided and mismatched, fails.