Skip to content

CDDL: Specify internal COSE payload type/structure #103

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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