Skip to main content

A.5. Example Encrypted CWT

A.5. Example Encrypted CWT

This section shows an encrypted CWT with a single recipient and a full CWT Claims Set.

The encryption is done with AES-CCM mode using the 128-bit symmetric key from Appendix A.2.1 with a 64-bit tag and 13-byte nonce, i.e., COSE AES-CCM-16-64-128. Line breaks are for display purposes only.

d08343a1010aa2044c53796d6d6574726963313238054d99a0d7846e762c49ff
e8a63e0b5858b918a11fd81e438b7f973d9e2e119bcb22424ba0f38a80f27562
f400ee1d0d6c0fdb559c02421fd384fc2ebe22d7071378b0ea7428fff157444d
45f7e6afcda1aae5f6495830c58627087fc5b4974f319a8707a635dd643b

Figure 14: Encrypted CWT as Hex String

16(
[
/ protected / << {
/ alg / 1: 10 / AES-CCM-16-64-128 /
} >>,
/ unprotected / {
/ kid / 4: h'53796d6d6574726963313238' / 'Symmetric128' /,
/ iv / 5: h'99a0d7846e762c49ffe8a63e0b'
},
/ ciphertext / h'b918a11fd81e438b7f973d9e2e119bcb22424ba0f38
a80f27562f400ee1d0d6c0fdb559c02421fd384fc2e
be22d7071378b0ea7428fff157444d45f7e6afcda1a
ae5f6495830c58627087fc5b4974f319a8707a635dd
643b'
]
)

Figure 15: Encrypted CWT in CBOR Diagnostic Notation