cose-js
Version:
JavaScript COSE implementation
48 lines (47 loc) • 1.76 kB
JSON
{
"title":"HKDF-AES-256-10: Direct HKDF AES-256 - 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":"sec-256",
"use":"enc",
"k":"Dx4tPEtaaXiHlqW0w9Lh8B8uPUxbanmIl6a1xNPi8QA"
},
"protected":{
"alg":"HKDF-AES-256"
},
"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":"8263A1B8FC6257901A6BF1C1AFB86C0A",
"recipients":[
{
"Context_hex":"840A834653656E646572F647532D6F746865728349526563697069656E74F647522D6F7468657282188043A1012C"
}
]
},
"output":{
"cbor_diag":"96([h'A1010A', {5: h'BFE89563EE070CE187BDF1C472'}, h'CA32399437BD5AC78F0DAFCF090385BAA077D77CEBEEDC4CD15E2CA3', [[h'A1012C', {-21: h'53656E646572', 4: h'6F75722D736563726574', -24: h'526563697069656E74', -23: h'532D6F74686572', -26: h'522D6F74686572'}, h'']]])",
"cbor":"D8608443A1010AA1054DBFE89563EE070CE187BDF1C472581CCA32399437BD5AC78F0DAFCF090385BAA077D77CEBEEDC4CD15E2CA3818343A1012CA5344653656E646572044A6F75722D7365637265743749526563697069656E743647532D6F74686572381947522D6F7468657240"
}
}