メインコンテンツまでスキップ

A.7. Example MACed CWT with a Floating-Point Value (浮動小数点値を含む MAC 済み CWT の例)

A.7. Example MACed CWT with a Floating-Point Value (浮動小数点値を含む MAC 済み CWT の例)

本節は, 単一の受信者と単純な CWT Claims Set を持つ MAC 済み CWT を示す。CWT Claims Set には浮動小数点の iat 値が含まれる。

MAC は付録 A.2.2 の 256 ビット対称鍵を用い, 64 ビット切り詰めで生成される。改行は表示上の目的のみである。

d18443a10104a1044c53796d6d65747269633235364ba106fb41d584367c2000
0048b8816f34c0542892

図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'
]
)

図19: MACed CWT with a Floating-Point Value in CBOR Diagnostic Notation