Skip to content
This repository was archived by the owner on Feb 12, 2023. It is now read-only.

Why is type of box_purpose string in c2pa box? #27

@ytakio

Description

@ytakio

Describe the issue
C2PA spec defines c2pa box to contain some data which box_purpose indicates. But type of box_pupose is string.
Type of string means to be variable length and be terminated with null. It makes implementation to scan sequentially to parsing for safety. And alignment will be unpredictable.

Fixed bitwidth (like unsigned int(64)?) may be easier to handle, implement and be quick for SW/HW implementation.

For instance...

aligned(8) class ContentProvenanceBox extends FullBox(`'c2pa'`, version, 0) {
    if (version==0) {
        string box_purpose;
    } else if (version==1) {
        unsigned int(64) box_purpose;
    }
    bit(8) data[];
}

64 bit can present manifest and merkle (or merkle ?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions