cose-js
Version:
JavaScript COSE implementation
48 lines (47 loc) • 1.72 kB
JSON
{
"title":"HKDF-AES-256-11: Direct HKDF AES-256 - U nonce + u other + v nonce + 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_nonce":"S101",
"apv_nonce":"R102",
"apu_other":"S-other",
"apv_other":"R-other"
}
}
]
},
"rng_stream":[
"BFE89563EE070CE187BDF1C472"
]
},
"intermediates":{
"AAD_hex":"8367456E637279707443A1010A40",
"CEK_hex":"79F109805924B5C0394EF6D0DDC46F51",
"recipients":[
{
"Context_hex":"840A83F6445331303147532D6F7468657283F6445231303247522D6F7468657282188043A1012C"
}
]
},
"output":{
"cbor_diag":"96([h'A1010A', {5: h'BFE89563EE070CE187BDF1C472'}, h'9CD7FA802900737A1D067463DD446ED538B51E1796F83E04FE833635', [[h'A1012C', {-22: h'53313031', 4: h'6F75722D736563726574', -25: h'52313032', -23: h'532D6F74686572', -26: h'522D6F74686572'}, h'']]])",
"cbor":"D8608443A1010AA1054DBFE89563EE070CE187BDF1C472581C9CD7FA802900737A1D067463DD446ED538B51E1796F83E04FE833635818343A1012CA5354453313031044A6F75722D736563726574381844523130323647532D6F74686572381947522D6F7468657240"
}
}