A.7. Example MACed CWT with a Floating-Point Value
A.7. Example MACed CWT with a Floating-Point Value
This section shows a MACed CWT with a single recipient and a simple CWT Claims Set. The CWT Claims Set with a floating-point 'iat' value.
The MAC is generated using the 256-bit symmetric key from Appendix A.2.2 with a 64-bit truncation. Line breaks are for display purposes only.
d18443a10104a1044c53796d6d65747269633235364ba106fb41d584367c2000
0048b8816f34c0542892
Figure 18: MACed CWT with a Floating-Point Value as Hex String
17(
[
/ protected / << {
/ alg / 1: 4 / HMAC-256-64 /
} >>,
/ unprotected / {
/ kid / 4: h'53796d6d6574726963323536' / 'Symmetric256' /,
},
/ payload / << {
/ iat / 6: 1443944944.5
} >>,
/ tag / h'b8816f34c0542892'
]
)
Figure 19: MACed CWT with a Floating-Point Value in CBOR Diagnostic Notation