test(drm): gold-standard CENC conformance vs Bento4 (independent reference)#609
Open
RicherTunes wants to merge 1 commit into
Open
test(drm): gold-standard CENC conformance vs Bento4 (independent reference)#609RicherTunes wants to merge 1 commit into
RicherTunes wants to merge 1 commit into
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cross-validates
CencSegmentDecryptoragainst 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 bymp4encrypt --method MPEG-CENCwith a known key/KID; the expected plaintext is the exact output ofmp4decrypton the same segment. Decrypting it withCencSegmentDecryptoryields byte-identical output — proving our walker + senc/trun/tfhd parsers + AES-CTR core agree with an independent tool..wvdor live content is needed.🤖 Generated with Claude Code