Open
Description
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
Labels
No labels