Skip to content

feat(tee): export the SEV-SNP ABI offset table (0.10.0) - #262

Merged
imran-siddique merged 1 commit into
mainfrom
feat/snp-public-offsets
Aug 2, 2026
Merged

feat(tee): export the SEV-SNP ABI offset table (0.10.0)#262
imran-siddique merged 1 commit into
mainfrom
feat/snp-public-offsets

Conversation

@imran-siddique

Copy link
Copy Markdown
Contributor

Completes what #260 started.

cmcp keeps a ctypes mirror of the SNP layout for two reasons: to parse, and to read offsets off (_SnpAttestationReport.measurement.offset) across seven test files. #260 shared the parse. Sharing that alone would have left the offsets behind in test scaffolding, which is the worst place for them: offsets that quietly disagree are exactly the failure this consolidation exists to prevent, and nothing would have caught it.

SNP_OFFSETS and SNP_REPORT_LEN are now public and checked against the genuine Azure capture rather than against themselves.

Version bump included: 0.10.0, purely additive, no behaviour change.

🤖 Generated with Claude Code

Downstreams kept a ctypes mirror of the SNP layout partly to parse and partly to
read offsets off it. cmcp uses it as an offset oracle across seven test files,
so sharing parse_snp_report without sharing the table would have moved the
duplication into test scaffolding rather than removing it, and offsets that
disagree silently are the failure this consolidation exists to prevent.

SNP_OFFSETS and SNP_REPORT_LEN are checked against the genuine Azure capture
rather than against themselves.

Cut as 0.10.0 in the same change: purely additive, no behaviour change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@imran-siddique
imran-siddique merged commit 5380004 into main Aug 2, 2026
14 checks passed
@imran-siddique
imran-siddique deleted the feat/snp-public-offsets branch August 2, 2026 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant