Skip to content

CDDL: Specify internal COSE payload type/structure #103

@Pique7

Description

@Pique7

Is it possible in CDDL to specify which internal structure a COSE payload data should have?
I want to encrypt CBOR data. I have defined a CDDL fragment of the data that should be encrypted. e.g.:

my-encrypted-cbor-data = {
  email_address: string,
  password: string
}

And I have a CDDL fragment which contains a COSE_Encrypt0 object:

my-container = {
  id: uint,
  confidential: COSE_Encrypt0
}

Does CDDL provide a construct to define this relationship, that the payload of my-container.confidential should be a CBOR structure compliant with my-encrypted-cbor-data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions