cose-js
Version:
JavaScript COSE implementation
41 lines (40 loc) • 1.16 kB
JSON
{
"title":"AES-GCM-ENC-02: Encryption example for spec - implicit",
"input":{
"plaintext":"This is the content.",
"encrypted":{
"protected":{
"alg":"A192GCM"
},
"recipients":[
{
"key":{
"kty":"oct",
"kid":"sec-192",
"use":"enc",
"k":"Dx4tPEtaaXiHlqW0w9Lh8B8uPUxbanmI"
},
"unprotected":{
"alg":"direct",
"kid":"sec-48"
}
}
]
},
"rng_stream":[
"02D1F7E6F26C43D4868D87CE"
]
},
"intermediates":{
"AAD_hex":"8368456E63727970743043A1010240",
"CEK_hex":"0F1E2D3C4B5A69788796A5B4C3D2E1F01F2E3D4C5B6A7988",
"recipients":[
{
}
]
},
"output":{
"cbor_diag":"16([h'A10102', {5: h'02D1F7E6F26C43D4868D87CE'}, h'134D3B9223A00C1552C77585C157F467F295919D530FBE21F7689AB3CD4D18FFE8E17CEB'])",
"cbor":"D08343A10102A1054C02D1F7E6F26C43D4868D87CE5824134D3B9223A00C1552C77585C157F467F295919D530FBE21F7689AB3CD4D18FFE8E17CEB"
}
}