-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
C2PA v2.1 Updates - BMFF hash v3 assertion (#213)
* Implement BMFF hash v3 assertion * Enhance BMFF functionality with new box retrieval method and hash assertion improvements * Refactor BMFFHashAssertion to support versioning and improve validation logic Add unit tests * remove unused code * Add unit tests for v2 and v3 BMFF hash assertions * add new v3 test cases, add a new asset type for 'trustnxt-icon-signed-v3.heic' in asset-reading tests. * Refactor AssertionUtils and BMFFHashAssertion for improved exclusion handling and validation logic - Simplified exclusion sorting in AssertionUtils to only consider start positions. - Enhanced data processing in AssertionUtils to correctly handle offset markers and remaining data. - Updated BMFFHashAssertion to use mdatBox.payloadOffset for data retrieval, ensuring compliance with specifications. - Modified test cases to reflect changes in exclusion structure and improve validation checks for BMFF hash assertions. * Implement HashAssertion interface in BMFFHashAssertion and DataHashAssertion classes * bmff hash update logic * Refactor BMFF hash assertion and box handling * fix version * resolve comments * update readme * update readme
- Loading branch information
1 parent
eae180b
commit 85916f6
Showing
16 changed files
with
935 additions
and
133 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@trustnxt/c2pa-ts': minor | ||
--- | ||
|
||
BMFF hash v3 assertion |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.