Skip to content

test(drm): gold-standard CENC conformance vs Bento4 (independent reference)#609

Open
RicherTunes wants to merge 1 commit into
mainfrom
test/cenc-bento4-conformance
Open

test(drm): gold-standard CENC conformance vs Bento4 (independent reference)#609
RicherTunes wants to merge 1 commit into
mainfrom
test/cenc-bento4-conformance

Conversation

@RicherTunes
Copy link
Copy Markdown
Owner

Cross-validates CencSegmentDecryptor against Bento4 (mp4encrypt/mp4decrypt) — the battle-tested reference implementation — not just our own NIST-vector + synthetic-box fixtures.

The embedded fixture is a real cenc-encrypted DASH media segment (moof+mdat, 10 samples) produced by mp4encrypt --method MPEG-CENC with a known key/KID; the expected plaintext is the exact output of mp4decrypt on the same segment. Decrypting it with CencSegmentDecryptor yields byte-identical output — proving our walker + senc/trun/tfhd parsers + AES-CTR core agree with an independent tool.

  • Fixture is base64-embedded, so CI runs it without Bento4 installed.
  • Closes the 'real-segment plaintext diff' gap from the conformance-validation strategy: Bento4 generates the sample, so no .wvd or live content is needed.

🤖 Generated with Claude Code

…rence)

Cross-validates CencSegmentDecryptor against Bento4 (mp4encrypt/mp4decrypt) — the battle-tested
reference implementation — not just our own NIST-vector + synthetic-box fixtures. The embedded
fixture is a REAL cenc-encrypted DASH media segment (moof+mdat, 10 samples) produced by
'mp4encrypt --method MPEG-CENC' with a known key/KID, and the expected plaintext is the exact
output of 'mp4decrypt' on it. Decrypting with CencSegmentDecryptor yields byte-identical output,
proving our walker + senc/trun/tfhd parsers + AES-CTR core agree with an independent tool. Fixture
is base64-embedded so CI runs without Bento4 installed. Closes the 'real-segment plaintext diff'
gap flagged in the conformance-validation strategy (Bento4 generates the sample; no .wvd needed).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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