{ "title":"Encryption example for spec - Direct ECDH", "input":{ "plaintext":"This is the content.", "enveloped":{ "protected":{ "alg":"A128GCM" }, "countersign":{ "signers":[ { "key":{ "kty":"EC", "kid":"bilbo.baggins@hobbiton.example", "use":"sig", "crv":"P-521", "x":"AHKZLLOsCOzz5cY97ewNUajB957y-C-U88c3v13nmGZx6sYl_oJXu9A5RkTKqjqvjyekWF-7ytDyRXYgCF5cj0Kt", "y":"AdymlHvOiLxXkEhayXQnNCvDX4h9htZaCJN34kfmC6pV5OhQHiraVySsUdaQkAgDPrwQrJmbnX9cwlGfP-HqHZR1", "d":"AAhRON2r9cqXX1hg-RoI6R1tX5p2rUAYdmpHZoC1XNM56KtscrX6zbKipQrCW9CGZH3T4ubpnoTKLDYJ_fF3_rJt" }, "protected":{ "alg":"ES512" }, "unprotected":{ "kid":"bilbo.baggins@hobbiton.example" } } ] }, "recipients":[ { "key":{ "kty":"EC", "kid":"meriadoc.brandybuck@buckland.example", "crv":"P-256", "x":"Ze2loSV3wrroKUN_4zhwGhCqo3Xhu1td4QjeQ5wIVR0", "y":"HlLtdXARY_f55A3fnzQbPcm6hgr34Mp8p-nuzQCE0Zw", "d":"r_kHyZ-a06rmxM3yESK84r1otSg-aQcVStkRhA-iCM8" }, "protected":{ "alg":"ECDH-ES" }, "unprotected":{ "kid":"meriadoc.brandybuck@buckland.example", "epk":{ "kty":"EC", "crv":"P-256", "x":"mPUKT_bAWGHIhg0TpjjqVsP1rXWQu_vwVOHHtNkdYoA", "y":"8BQAsImGeAS46fyWw5MhYfGTT0IjBpFw2SS34Dv4Irs" } }, "unsent":{ "compressed": 1 } } ] }, "rng_stream":[ "02D1F7E6F26C43D4868D87CEB2353161740AACF1F7163647984B522A848DF1C3", "C9CF4DF2FE6C632BF7886413" ] }, "generated":{ "iv":"yc9N8v5sYyv3iGQT926IUg" }, "intermediates":{ "AAD_hex":"8367456E637279707443A1010140", "CEK_hex":"56074D506729CA40C4B4FE50C6439893", "recipients":[ { "Context_hex":"840183F6F6F683F6F6F682188044A1013818", "Secret_hex":"4B31712E096E5F20B4ECF9790FD8CC7C8B7E2C8AD90BDA81CB224F62C0E7B9A6" } ], "countersigners":[ { "ToBeSign_hex":"8570436F756E7465725369676E617475726543A1010144A10138234058247ADBE2709CA818FB415F1E5DF66F4E1A51053BA6D65A1A0C52A357DA7A644B8070A151B0" } ] }, "output":{ "cbor_diag":"96([h'A10101', {5: h'C9CF4DF2FE6C632BF7886413', 7: [h'A1013823', {4: h'62696C626F2E62616767696E7340686F626269746F6E2E6578616D706C65'}, h'00929663C8789BB28177AE28467E66377DA12302D7F9594D2999AFA5DFA531294F8896F2B6CDF1740014F4C7F1A358E3A6CF57F4ED6FB02FCF8F7AA989F5DFD07F0700A3A7D8F3C604BA70FA9411BD10C2591B483E1D2C31DE003183E434D8FBA18F17A4C7E3DFA003AC1CF3D30D44D2533C4989D3AC38C38B71481CC3430C9D65E7DDFF']}, h'7ADBE2709CA818FB415F1E5DF66F4E1A51053BA6D65A1A0C52A357DA7A644B8070A151B0', [[h'A1013818', {-1: {1: 2, -1: 1, -2: h'98F50A4FF6C05861C8860D13A638EA56C3F5AD7590BBFBF054E1C7B4D91D6280', -3: true}, 4: h'6D65726961646F632E6272616E64796275636B406275636B6C616E642E6578616D706C65'}, h'']]])", "cbor":"D8608443A10101A2054CC9CF4DF2FE6C632BF7886413078344A1013823A104581E62696C626F2E62616767696E7340686F626269746F6E2E6578616D706C65588400929663C8789BB28177AE28467E66377DA12302D7F9594D2999AFA5DFA531294F8896F2B6CDF1740014F4C7F1A358E3A6CF57F4ED6FB02FCF8F7AA989F5DFD07F0700A3A7D8F3C604BA70FA9411BD10C2591B483E1D2C31DE003183E434D8FBA18F17A4C7E3DFA003AC1CF3D30D44D2533C4989D3AC38C38B71481CC3430C9D65E7DDFF58247ADBE2709CA818FB415F1E5DF66F4E1A51053BA6D65A1A0C52A357DA7A644B8070A151B0818344A1013818A220A40102200121582098F50A4FF6C05861C8860D13A638EA56C3F5AD7590BBFBF054E1C7B4D91D628022F50458246D65726961646F632E6272616E64796275636B406275636B6C616E642E6578616D706C6540" } }