Module signature
Expand description
Ed25519 plugin signature verification.
Enums§
- Signature
Mode - Signature mode controls how unsigned/unverified plugins are handled.
- Verification
Result - Result of verifying a plugin’s signature.
Functions§
- canonical_
manifest_ bytes - Compute the canonical bytes of a manifest for signing/verification.
- enforce_
signature_ policy - Check a manifest’s signature and enforce the configured signature mode.
Returns
Ok(VerificationResult)on success (or warning in permissive mode), orErr(PluginError)if the plugin should be rejected. - generate_
signing_ key - Generate a new Ed25519 key pair for plugin signing.
Returns
(pkcs8_der_bytes, public_key_hex). - public_
key_ hex - Get the hex-encoded public key from a PKCS#8 Ed25519 private key.
- sha256_
hex - Compute a lowercase hexadecimal SHA-256 digest.
- sign_
manifest - Sign manifest bytes with an Ed25519 private key (PKCS#8 DER). Returns the base64url-encoded signature.
- sign_
manifest_ document - Sign a manifest and return the signed document, with the root
signatureandpublisher_keyentries embedded. - validate_
sha256_ hex - Validate the manifest representation of a SHA-256 digest.
- verify_
manifest - verify_
payload_ digest - Verify bytes against a manifest-provided SHA-256 digest.