A.7. Example MACed CWT with Float (MAC mit Gleitkomma)
A.7. Example MACed CWT with a Floating-Point Value (Beispiel: MAC-geschütztes CWT mit Gleitkommawert)
Dieser Abschnitt zeigt ein MAC-geschütztes CWT mit einem einzelnen Empfänger und einem einfachen CWT Claims Set. Das CWT Claims Set enthält einen Gleitkomma-iat-Wert.
Der MAC wird mit dem 256-Bit-Symmetrieschlüssel aus Anhang A.2.2 mit 64-Bit-Kürzung erzeugt. Zeilenumbrüche dienen nur der Darstellung.
d18443a10104a1044c53796d6d65747269633235364ba106fb41d584367c2000
0048b8816f34c0542892
Abbildung 18: MAC-geschütztes CWT mit Gleitkommawert als Hex-String
17(
[
/ protected / << {
/ alg / 1: 4 / HMAC-256-64 /
} >>,
/ unprotected / {
/ kid / 4: h'53796d6d6574726963323536' / 'Symmetric256' /,
},
/ payload / << {
/ iat / 6: 1443944944.5
} >>,
/ tag / h'b8816f34c0542892'
]
)
Abbildung 19: MAC-geschütztes CWT mit Gleitkommawert in CBOR-Diagnose-Notation