cose-js
Version:
JavaScript COSE implementation
48 lines (47 loc) • 1.7 kB
JSON
{
"title":"HKDF-AES-128-11: Direct HKDF AES-128 - 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":"our-secret",
"use":"enc",
"k":"hJtXIZ2uSN5kbQfbtTNWbg"
},
"protected":{
"alg":"HKDF-AES-128"
},
"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":"36FA1E3B6DCA7D53BC9F746E2FF3080C",
"recipients":[
{
"Context_hex":"840A83F6445331303147532D6F7468657283F6445231303247522D6F7468657282188043A1012B"
}
]
},
"output":{
"cbor_diag":"96([h'A1010A', {5: h'BFE89563EE070CE187BDF1C472'}, h'9B42933FD5662AA78669B95B5AE8511090AA5F7D34A7812A81B8860D', [[h'A1012B', {-22: h'53313031', 4: h'6F75722D736563726574', -25: h'52313032', -23: h'532D6F74686572', -26: h'522D6F74686572'}, h'']]])",
"cbor":"D8608443A1010AA1054DBFE89563EE070CE187BDF1C472581C9B42933FD5662AA78669B95B5AE8511090AA5F7D34A7812A81B8860D818343A1012BA5354453313031044A6F75722D736563726574381844523130323647532D6F74686572381947522D6F7468657240"
}
}