forked from cose-wg/Examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change leading white space from moving to a new pretty printer
- Loading branch information
Showing
260 changed files
with
9,611 additions
and
9,712 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,46 @@ | ||
{ | ||
"title":"X25519-hkdf-256-direct-01: X25519 direct w/ hkdf-sha-256 for 128-bit key", | ||
"input":{ | ||
"plaintext":"This is the content.", | ||
"enveloped":{ | ||
"protected":{ | ||
"alg":"A128GCM" | ||
}, | ||
"recipients":[ | ||
{ | ||
"key":{ | ||
"kty":"OKP", | ||
"kid":"X25519-1", | ||
"crv":"X25519", | ||
"x":"IK7vsPAaaEoEdTh4qaQUgGEAqfUQHfcLtqxy1Olk2JE", | ||
"d":"AqlD2qLjiy7b8NoENOquxgFv4l3NXsrLwH3DAwBWdpU" | ||
}, | ||
"protected":{ | ||
"alg":"ECDH-ES" | ||
}, | ||
"unprotected":{ | ||
"kid":"X25519-1" | ||
} | ||
} | ||
] | ||
}, | ||
"rng_stream":[ | ||
"1A553C409EF9DBB9249D91C464E68D9B092B20CAA028CEEC05D0F86FC314CA82", | ||
"9862E02EC874A0DF9FB12338" | ||
] | ||
"plaintext":"This is the content.", | ||
"enveloped":{ | ||
"protected":{ | ||
"alg":"A128GCM" | ||
}, | ||
"recipients":[ | ||
{ | ||
"key":{ | ||
"kty":"OKP", | ||
"kid":"X25519-1", | ||
"crv":"X25519", | ||
"x":"IK7vsPAaaEoEdTh4qaQUgGEAqfUQHfcLtqxy1Olk2JE", | ||
"d":"AqlD2qLjiy7b8NoENOquxgFv4l3NXsrLwH3DAwBWdpU" | ||
}, | ||
"protected":{ | ||
"alg":"ECDH-ES" | ||
}, | ||
"unprotected":{ | ||
"kid":"X25519-1" | ||
} | ||
} | ||
] | ||
}, | ||
"rng_stream":[ | ||
"1A553C409EF9DBB9249D91C464E68D9B092B20CAA028CEEC05D0F86FC314CA82", | ||
"9862E02EC874A0DF9FB12338" | ||
] | ||
}, | ||
"intermediates":{ | ||
"AAD_hex":"8367456E637279707443A1010140", | ||
"CEK_hex":"FF38572D1EBE0ABEAC5EEE1F48F9CA64", | ||
"recipients":[ | ||
{ | ||
"Context_hex":"840183F6F6F683F6F6F682188044A1013818", | ||
"Secret_hex":"B5DA948F36B6847ADD95BBE6DC0AD254222F3A7040E9FAD6ACB335928917DB7F" | ||
} | ||
] | ||
"AAD_hex":"8367456E637279707443A1010140", | ||
"CEK_hex":"FF38572D1EBE0ABEAC5EEE1F48F9CA64", | ||
"recipients":[ | ||
{ | ||
"Context_hex":"840183F6F6F683F6F6F682188044A1013818", | ||
"Secret_hex":"B5DA948F36B6847ADD95BBE6DC0AD254222F3A7040E9FAD6ACB335928917DB7F" | ||
} | ||
] | ||
}, | ||
"output":{ | ||
"cbor_diag":"992([h'A10101', {5: h'9862E02EC874A0DF9FB12338'}, h'B689A947458211FA99CE0B91694D31286962A6A500247602BFD2F1E956E8B8208C5B6459', [[h'A1013818', {-1: {1: 1, -1: 4, -2: h'72FC171C21BF5C682C64D2EF3A71AC877B40013D3754F63D4C3C3A965F1BA776'}, 4: h'5832353531392D31'}, h'']]])", | ||
"cbor":"D903E08443A10101A1054C9862E02EC874A0DF9FB123385824B689A947458211FA99CE0B91694D31286962A6A500247602BFD2F1E956E8B8208C5B6459818344A1013818A220A40101200421582072FC171C21BF5C682C64D2EF3A71AC877B40013D3754F63D4C3C3A965F1BA7762358201A553C409EF9DBB9249D91C464E68D9B092B20CAA028CEEC05D0F86FC314CA8204485832353531392D3140" | ||
"cbor_diag":"96([h'A10101', {5: h'9862E02EC874A0DF9FB12338'}, h'B689A947458211FA99CE0B91694D31286962A6A500247602BFD2F1E956E8B8208C5B6459', [[h'A1013818', {-1: {1: 1, -1: 4, -2: h'72FC171C21BF5C682C64D2EF3A71AC877B40013D3754F63D4C3C3A965F1BA776'}, 4: h'5832353531392D31'}, h'']]])", | ||
"cbor":"D8608443A10101A1054C9862E02EC874A0DF9FB123385824B689A947458211FA99CE0B91694D31286962A6A500247602BFD2F1E956E8B8208C5B6459818344A1013818A220A30101200421582072FC171C21BF5C682C64D2EF3A71AC877B40013D3754F63D4C3C3A965F1BA77604485832353531392D3140" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,53 @@ | ||
{ | ||
"title":"X25519-hkdf-256-direct-01: X25519 direct w/ hkdf-sha-256 for 128-bit key", | ||
"input":{ | ||
"plaintext":"This is the content.", | ||
"enveloped":{ | ||
"protected":{ | ||
"alg":"A128GCM" | ||
}, | ||
"recipients":[ | ||
{ | ||
"key":{ | ||
"kty":"OKP", | ||
"kid":"X25519-bob", | ||
"crv":"X25519", | ||
"x":"3p7bfXt9wbTTW2HC7OQ1Nz+DQ8hbeGdNrfx+FG+IK08=", | ||
"d":"XasIfmJKikt54X+Lg4AO5m87sSkmGLb9HC+LJ/+I4Os=" | ||
}, | ||
"protected":{ | ||
"alg":"ECDH-SS" | ||
}, | ||
"unprotected":{ | ||
"kid":"X25519-bob" | ||
}, | ||
"sender_key":{ | ||
"kty":"OKP", | ||
"kid":"X25519-alice", | ||
"crv":"X25519", | ||
"x":"hSDwCYkwp1R0i33ctD73Wg2/Og0mOBr066SpjqqbTmo=", | ||
"d":"dwdtCnMYpX08FsFyUbJmRd9ML4frwJkqsXf7pR25LCo=" | ||
} | ||
} | ||
] | ||
}, | ||
"rng_stream":[ | ||
"607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E445", | ||
"CDA8E5632E1501A698960E2B" | ||
] | ||
"plaintext":"This is the content.", | ||
"enveloped":{ | ||
"protected":{ | ||
"alg":"A128GCM" | ||
}, | ||
"recipients":[ | ||
{ | ||
"key":{ | ||
"kty":"OKP", | ||
"kid":"X25519-bob", | ||
"crv":"X25519", | ||
"x":"3p7bfXt9wbTTW2HC7OQ1Nz+DQ8hbeGdNrfx+FG+IK08=", | ||
"d":"XasIfmJKikt54X+Lg4AO5m87sSkmGLb9HC+LJ/+I4Os=" | ||
}, | ||
"protected":{ | ||
"alg":"ECDH-SS" | ||
}, | ||
"unprotected":{ | ||
"kid":"X25519-bob" | ||
}, | ||
"sender_key":{ | ||
"kty":"OKP", | ||
"kid":"X25519-alice", | ||
"crv":"X25519", | ||
"x":"hSDwCYkwp1R0i33ctD73Wg2/Og0mOBr066SpjqqbTmo=", | ||
"d":"dwdtCnMYpX08FsFyUbJmRd9ML4frwJkqsXf7pR25LCo=" | ||
} | ||
} | ||
] | ||
}, | ||
"rng_stream":[ | ||
"607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E445", | ||
"CDA8E5632E1501A698960E2B" | ||
] | ||
}, | ||
"intermediates":{ | ||
"AAD_hex":"8367456E637279707443A1010140", | ||
"CEK_hex":"1B0CF3522225D68331E58F7B021BAF2D", | ||
"recipients":[ | ||
{ | ||
"Context_hex":"840183F65840607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E445F683F6F6F682188044A101381A", | ||
"Secret_hex":"4A5D9D5BA4CE2DE1728E3BF480350F25E07E21C947D19E3376F09B3C1E161742" | ||
} | ||
] | ||
"AAD_hex":"8367456E637279707443A1010140", | ||
"CEK_hex":"1B0CF3522225D68331E58F7B021BAF2D", | ||
"recipients":[ | ||
{ | ||
"Context_hex":"840183F65840607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E445F683F6F6F682188044A101381A", | ||
"Secret_hex":"4A5D9D5BA4CE2DE1728E3BF480350F25E07E21C947D19E3376F09B3C1E161742" | ||
} | ||
] | ||
}, | ||
"output":{ | ||
"cbor_diag":"96([h'A10101', {5: h'CDA8E5632E1501A698960E2B'}, h'60F0E32B4E511A964DFA671D95F00463D094EDC3FCB3DF782C0EDEDDD9436FB8CC79F482', [[h'A101381A', {-3: h'5832353531392D616C696365', 4: h'5832353531392D626F62', -22: h'607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E445'}, h'']]])", | ||
"cbor":"D8608443A10101A1054CCDA8E5632E1501A698960E2B582460F0E32B4E511A964DFA671D95F00463D094EDC3FCB3DF782C0EDEDDD9436FB8CC79F482818344A101381AA3224C5832353531392D616C696365044A5832353531392D626F62355840607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E44540" | ||
"cbor_diag":"96([h'A10101', {5: h'CDA8E5632E1501A698960E2B'}, h'60F0E32B4E511A964DFA671D95F00463D094EDC3FCB3DF782C0EDEDDD9436FB8CC79F482', [[h'A101381A', {-3: h'5832353531392D616C696365', 4: h'5832353531392D626F62', -22: h'607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E445'}, h'']]])", | ||
"cbor":"D8608443A10101A1054CCDA8E5632E1501A698960E2B582460F0E32B4E511A964DFA671D95F00463D094EDC3FCB3DF782C0EDEDDD9436FB8CC79F482818344A101381AA3224C5832353531392D616C696365044A5832353531392D626F62355840607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E44540" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,40 @@ | ||
{ | ||
"title":"AES-CCM-01: Encrypt w/ AES-CCM 16-128/64 - direct", | ||
"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" | ||
}, | ||
"unprotected":{ | ||
"alg":"direct", | ||
"kid":"our-secret" | ||
} | ||
} | ||
] | ||
}, | ||
"rng_stream":[ | ||
"89F52F65A1C580933B5261A72F" | ||
] | ||
"plaintext":"This is the content.", | ||
"enveloped":{ | ||
"protected":{ | ||
"alg":"AES-CCM-16-128/64" | ||
}, | ||
"recipients":[ | ||
{ | ||
"key":{ | ||
"kty":"oct", | ||
"kid":"our-secret", | ||
"use":"enc", | ||
"k":"hJtXIZ2uSN5kbQfbtTNWbg" | ||
}, | ||
"unprotected":{ | ||
"alg":"direct", | ||
"kid":"our-secret" | ||
} | ||
} | ||
] | ||
}, | ||
"rng_stream":[ | ||
"89F52F65A1C580933B5261A72F" | ||
] | ||
}, | ||
"intermediates":{ | ||
"recipients":[ | ||
{ | ||
|
||
} | ||
], | ||
"AAD_hex":"8367456E637279707443A1010A40", | ||
"CEK_hex":"849B57219DAE48DE646D07DBB533566E" | ||
"recipients":[ | ||
{ | ||
} | ||
], | ||
"AAD_hex":"8367456E637279707443A1010A40", | ||
"CEK_hex":"849B57219DAE48DE646D07DBB533566E" | ||
}, | ||
"output":{ | ||
"cbor_diag":"96([h'A1010A', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A46802388816C040275EE', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])", | ||
"cbor":"D8608443A1010AA1054D89F52F65A1C580933B5261A72F581C6899DA0A132BD2D2B9B10915743EE1F7B92A46802388816C040275EE818340A20125044A6F75722D73656372657440" | ||
"cbor_diag":"96([h'A1010A', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A46802388816C040275EE', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])", | ||
"cbor":"D8608443A1010AA1054D89F52F65A1C580933B5261A72F581C6899DA0A132BD2D2B9B10915743EE1F7B92A46802388816C040275EE818340A20125044A6F75722D73656372657440" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,40 @@ | ||
{ | ||
"title":"AES-CCM-02: Encrypt w/ AES-CCM 16-128/128 - direct", | ||
"input":{ | ||
"plaintext":"This is the content.", | ||
"enveloped":{ | ||
"protected":{ | ||
"alg":"AES-CCM-16-128/128" | ||
}, | ||
"recipients":[ | ||
{ | ||
"key":{ | ||
"kty":"oct", | ||
"kid":"our-secret", | ||
"use":"enc", | ||
"k":"hJtXIZ2uSN5kbQfbtTNWbg" | ||
}, | ||
"unprotected":{ | ||
"alg":"direct", | ||
"kid":"our-secret" | ||
} | ||
} | ||
] | ||
}, | ||
"rng_stream":[ | ||
"89F52F65A1C580933B5261A72F" | ||
] | ||
"plaintext":"This is the content.", | ||
"enveloped":{ | ||
"protected":{ | ||
"alg":"AES-CCM-16-128/128" | ||
}, | ||
"recipients":[ | ||
{ | ||
"key":{ | ||
"kty":"oct", | ||
"kid":"our-secret", | ||
"use":"enc", | ||
"k":"hJtXIZ2uSN5kbQfbtTNWbg" | ||
}, | ||
"unprotected":{ | ||
"alg":"direct", | ||
"kid":"our-secret" | ||
} | ||
} | ||
] | ||
}, | ||
"rng_stream":[ | ||
"89F52F65A1C580933B5261A72F" | ||
] | ||
}, | ||
"intermediates":{ | ||
"recipients":[ | ||
{ | ||
|
||
} | ||
], | ||
"AAD_hex":"8367456E637279707444A101181E40", | ||
"CEK_hex":"849B57219DAE48DE646D07DBB533566E" | ||
"recipients":[ | ||
{ | ||
} | ||
], | ||
"AAD_hex":"8367456E637279707444A101181E40", | ||
"CEK_hex":"849B57219DAE48DE646D07DBB533566E" | ||
}, | ||
"output":{ | ||
"cbor_diag":"96([h'A101181E', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A46801D3D61B6E7C964520652F9D3C8347E8A', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])", | ||
"cbor":"D8608444A101181EA1054D89F52F65A1C580933B5261A72F58246899DA0A132BD2D2B9B10915743EE1F7B92A46801D3D61B6E7C964520652F9D3C8347E8A818340A20125044A6F75722D73656372657440" | ||
"cbor_diag":"96([h'A101181E', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A46801D3D61B6E7C964520652F9D3C8347E8A', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])", | ||
"cbor":"D8608444A101181EA1054D89F52F65A1C580933B5261A72F58246899DA0A132BD2D2B9B10915743EE1F7B92A46801D3D61B6E7C964520652F9D3C8347E8A818340A20125044A6F75722D73656372657440" | ||
} | ||
} | ||
} |
Oops, something went wrong.