sec/sbom
lib/sec/sbom.vklib/sec/sbom.vk
Pure-Veko CycloneDX 1.5 and SPDX 2.3 Software Bill of Materials (SBOM) generator,
cryptographic package verifier, VEX embedder, and FIPS 204 ML-DSA-65 attestation signer.
Zero top-level mut heap globals (RT-GLOBALS safe) and zero src/* imports.
StdlibComponent = struct { path str, sha256 str, size i64 }
One standard-library source file entry included when SbomOpts.include_stdlib is true.
SbomOpts = struct { project_dir str = ..., format enum = ..., include_stdlib bool = ..., stdlib_files block[StdlibComponent] = ..., verify bool = ..., vex_path str = ..., sign_key_path str = ..., supplier str = ..., author str = ..., timestamp str = ... }
Configuration options for sbom/generate and sbom/generate-verified.
SbomComponent = struct { bom_ref str, name str, version str, purl str, comp_type str = ..., supplier str, sha256 str = ..., merkle_root str = ..., signer str = ..., source str = ..., capabilities block[str] = ..., verified bool = ... }
One software component node inside a generated SBOM report.
SbomReport = struct { format enum, timestamp str, root SbomComponent, components block[SbomComponent], dependencies block[map], vex any = ..., warnings block[str] = ..., verify_errors block[str] = ..., json str = ..., signature_hex str = ..., public_key_hex str = ... }
Generated SBOM report containing structured components, serialized JSON, diagnostics, and optional ML-DSA-65 signature.
parse-manifest-basic = fn [src str] map
Parses name, version, root, entry, allow-caps, deps, and trust-keys from a veko.vk manifest without importing src/*.
generate = fn [opts SbomOpts] SbomReport
Generates a CycloneDX 1.5 or SPDX 2.3 SBOM report for opts.project_dir, verifying lock pins, artifacts, and optional ML-DSA-65 signing.
generate-verified = fn [opts SbomOpts] SbomReport
Generates an SBOM with verify = true and returns an error listing verify_errors if any verification check fails.
verify-signature = fn [sbom_json str, pk_hex str, sig_hex str] bool
Verifies an ML-DSA-65 hex signature against sbom_json and a hex-encoded public key.