Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDDL: Specify internal COSE payload type/structure #103

Open
Pique7 opened this issue Nov 23, 2024 · 0 comments
Open

CDDL: Specify internal COSE payload type/structure #103

Pique7 opened this issue Nov 23, 2024 · 0 comments

Comments

@Pique7
Copy link

Pique7 commented Nov 23, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant