cose-js
Version:
JavaScript COSE implementation
48 lines (47 loc) • 1.74 kB
JSON
{
"title":"HKDF-AES-128-10: Direct HKDF AES-128 - U id + u other + v id + v other",
"input":{
"plaintext":"This is the content.",
"enveloped":{
"protected":{
"alg":"AES-CCM-16-128/64"
},
"recipients":[
{
"key":{
"kty":"oct",
"kid":"our-secret",
"use":"enc",
"k":"hJtXIZ2uSN5kbQfbtTNWbg"
},
"protected":{
"alg":"HKDF-AES-128"
},
"unprotected":{
"kid":"our-secret",
"apu_id":"Sender",
"apv_id":"Recipient",
"apu_other":"S-other",
"apv_other":"R-other"
}
}
]
},
"rng_stream":[
"BFE89563EE070CE187BDF1C472"
]
},
"intermediates":{
"AAD_hex":"8367456E637279707443A1010A40",
"CEK_hex":"47E6AE1D2414389811A1FFB5E183391B",
"recipients":[
{
"Context_hex":"840A834653656E646572F647532D6F746865728349526563697069656E74F647522D6F7468657282188043A1012B"
}
]
},
"output":{
"cbor_diag":"96([h'A1010A', {5: h'BFE89563EE070CE187BDF1C472'}, h'BC9FA9456EC467CA0F1A2FC9743B5ED8B4773960F514C51778A655FA', [[h'A1012B', {-21: h'53656E646572', 4: h'6F75722D736563726574', -24: h'526563697069656E74', -23: h'532D6F74686572', -26: h'522D6F74686572'}, h'']]])",
"cbor":"D8608443A1010AA1054DBFE89563EE070CE187BDF1C472581CBC9FA9456EC467CA0F1A2FC9743B5ED8B4773960F514C51778A655FA818343A1012BA5344653656E646572044A6F75722D7365637265743749526563697069656E743647532D6F74686572381947522D6F7468657240"
}
}