Skip to content

No failure when crit header references an non-registered parameter #136

@BrianSipos

Description

@BrianSipos

Currently, there is a decoding option in various COSE decoders allow_unknown_attributes to enable pass-through of header parameters that are not registered with CoseHeaderAttribute class. But there is currently no logic to cover situations where header parameter labels are referenced, sch as the crit (code 2) parameter value.

Whether or not this is allowed to be user-configured, it seems like the baseline decoder behavior should be to fail if a crit header references a non-registered parameter label. The rationale being that the source is declaring those parameters mandatory to be "understood" per RFC 9052.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions