Skip to content

Commit 3d0ee8f

Browse files
committed
Change the struture tags
We now have what we think are the final structure tag assignments from IANA. So update the
1 parent 7f69ca5 commit 3d0ee8f

File tree

252 files changed

+618
-499
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

252 files changed

+618
-499
lines changed

Examples.WinMerge

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<project>
4+
<paths>
5+
<left>C:\Projects\COSE\Examples\</left>
6+
<right>C:\Projects\COSE\Examples\new\</right>
7+
<filter>*.*</filter>
8+
<subfolders>1</subfolders>
9+
<left-readonly>0</left-readonly>
10+
<right-readonly>0</right-readonly>
11+
</paths>
12+
</project>

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,16 @@ As time and the spec progresses, it is expected that we will start looking at ad
1717

1818
* cbc-mac-examples - Contians Mac and Mac0 examples related to the AES CBC Mac algorithm
1919

20+
* chacha-poly-examples - Contains Enveloped and Encrypt examples related to the ChaCha-Poly1305 algorithm
21+
22+
* ecdh-direct-examples - Contains Enveloped and MAC examples related to the ECDH key managment algorithm where no key wrap algorithm is used
23+
24+
* ecdh-wrap-examples - Contains Enveloped and MAC examples related to the ECDH key managment algorithm where a key wrap algorithm is used
25+
2026
* ecdsa-examples - Contains Sign and Sign0 examples related to the ECDSA signature algorithm
2127

28+
* encrypted-tests - Contains Encrypt test examples
29+
2230
* hkdf-aes-examples - Contains Enveloped and Mac examples related to the use of direct key with the HKDF-AES recipient algorithms
2331

2432
* hkdf-hmac-sha-examples - Contains Enveloped and Mac examples related to the use of direct key with the HKDF-HMAC-SHA recipient algorithms
@@ -28,4 +36,4 @@ As time and the spec progresses, it is expected that we will start looking at ad
2836

2937
# Random number generation
3038

31-
The examples can potentially contain a random number generation stream. This field contains a re-playable random number generator sequence that is used by the program which generates the examples. The order in which calls are made to the random number generator should be documented int he description field when this present in the file.
39+
The examples can potentially contain a random number generation stream. This field contains a re-playable random number generator sequence that is used by the program which generates the examples. The order in which calls are made to the random number generator should be documented in the description field when this present in the file.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"title":"X25519-hkdf-256-direct-01: X25519 direct w/ hkdf-sha-256 for 128-bit key",
3+
"input":{
4+
"plaintext":"This is the content.",
5+
"enveloped":{
6+
"protected":{
7+
"alg":"A128GCM"
8+
},
9+
"recipients":[
10+
{
11+
"key":{
12+
"kty":"OKP",
13+
"kid":"X25519-1",
14+
"crv":"X25519",
15+
"x":"IK7vsPAaaEoEdTh4qaQUgGEAqfUQHfcLtqxy1Olk2JE",
16+
"d":"AqlD2qLjiy7b8NoENOquxgFv4l3NXsrLwH3DAwBWdpU"
17+
},
18+
"protected":{
19+
"alg":"ECDH-ES"
20+
},
21+
"unprotected":{
22+
"kid":"X25519-1"
23+
}
24+
}
25+
]
26+
},
27+
"rng_stream":[
28+
"1A553C409EF9DBB9249D91C464E68D9B092B20CAA028CEEC05D0F86FC314CA82",
29+
"9862E02EC874A0DF9FB12338"
30+
]
31+
},
32+
"intermediates":{
33+
"AAD_hex":"8367456E637279707443A1010140",
34+
"CEK_hex":"FF38572D1EBE0ABEAC5EEE1F48F9CA64",
35+
"recipients":[
36+
{
37+
"Context_hex":"840183F6F6F683F6F6F682188044A1013818",
38+
"Secret_hex":"B5DA948F36B6847ADD95BBE6DC0AD254222F3A7040E9FAD6ACB335928917DB7F"
39+
}
40+
]
41+
},
42+
"output":{
43+
"cbor_diag":"992([h'A10101', {5: h'9862E02EC874A0DF9FB12338'}, h'B689A947458211FA99CE0B91694D31286962A6A500247602BFD2F1E956E8B8208C5B6459', [[h'A1013818', {-1: {1: 1, -1: 4, -2: h'72FC171C21BF5C682C64D2EF3A71AC877B40013D3754F63D4C3C3A965F1BA776'}, 4: h'5832353531392D31'}, h'']]])",
44+
"cbor":"D903E08443A10101A1054C9862E02EC874A0DF9FB123385824B689A947458211FA99CE0B91694D31286962A6A500247602BFD2F1E956E8B8208C5B6459818344A1013818A220A40101200421582072FC171C21BF5C682C64D2EF3A71AC877B40013D3754F63D4C3C3A965F1BA7762358201A553C409EF9DBB9249D91C464E68D9B092B20CAA028CEEC05D0F86FC314CA8204485832353531392D3140"
45+
}
46+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"title":"X25519-hkdf-256-direct-01: X25519 direct w/ hkdf-sha-256 for 128-bit key",
3+
"input":{
4+
"plaintext":"This is the content.",
5+
"enveloped":{
6+
"protected":{
7+
"alg":"A128GCM"
8+
},
9+
"recipients":[
10+
{
11+
"key":{
12+
"kty":"OKP",
13+
"kid":"X25519-bob",
14+
"crv":"X25519",
15+
"x":"3p7bfXt9wbTTW2HC7OQ1Nz+DQ8hbeGdNrfx+FG+IK08=",
16+
"d":"XasIfmJKikt54X+Lg4AO5m87sSkmGLb9HC+LJ/+I4Os="
17+
},
18+
"protected":{
19+
"alg":"ECDH-SS"
20+
},
21+
"unprotected":{
22+
"kid":"X25519-bob"
23+
},
24+
"sender_key":{
25+
"kty":"OKP",
26+
"kid":"X25519-alice",
27+
"crv":"X25519",
28+
"x":"hSDwCYkwp1R0i33ctD73Wg2/Og0mOBr066SpjqqbTmo=",
29+
"d":"dwdtCnMYpX08FsFyUbJmRd9ML4frwJkqsXf7pR25LCo="
30+
}
31+
}
32+
]
33+
},
34+
"rng_stream":[
35+
"607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E445",
36+
"CDA8E5632E1501A698960E2B"
37+
]
38+
},
39+
"intermediates":{
40+
"AAD_hex":"8367456E637279707443A1010140",
41+
"CEK_hex":"1B0CF3522225D68331E58F7B021BAF2D",
42+
"recipients":[
43+
{
44+
"Context_hex":"840183F65840607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E445F683F6F6F682188044A101381A",
45+
"Secret_hex":"4A5D9D5BA4CE2DE1728E3BF480350F25E07E21C947D19E3376F09B3C1E161742"
46+
}
47+
]
48+
},
49+
"output":{
50+
"cbor_diag":"96([h'A10101', {5: h'CDA8E5632E1501A698960E2B'}, h'60F0E32B4E511A964DFA671D95F00463D094EDC3FCB3DF782C0EDEDDD9436FB8CC79F482', [[h'A101381A', {-3: h'5832353531392D616C696365', 4: h'5832353531392D626F62', -22: h'607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E445'}, h'']]])",
51+
"cbor":"D8608443A10101A1054CCDA8E5632E1501A698960E2B582460F0E32B4E511A964DFA671D95F00463D094EDC3FCB3DF782C0EDEDDD9436FB8CC79F482818344A101381AA3224C5832353531392D616C696365044A5832353531392D626F62355840607A92A41974DF0CB967E1C395B21F557469379E011781B6BE9189F40ADFECE4715AB87A79B36FB20913240FBB833FAB14B6A72A232A3CB18D1996A16256E44540"
52+
}
53+
}

aes-ccm-examples/aes-ccm-01.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"849B57219DAE48DE646D07DBB533566E"
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A1010A', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A46802388816C040275EE', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39-
"cbor":"D903E08443A1010AA1054D89F52F65A1C580933B5261A72F581C6899DA0A132BD2D2B9B10915743EE1F7B92A46802388816C040275EE818340A20125044A6F75722D73656372657440"
38+
"cbor_diag":"96([h'A1010A', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A46802388816C040275EE', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39+
"cbor":"D8608443A1010AA1054D89F52F65A1C580933B5261A72F581C6899DA0A132BD2D2B9B10915743EE1F7B92A46802388816C040275EE818340A20125044A6F75722D73656372657440"
4040
}
4141
}

aes-ccm-examples/aes-ccm-02.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"849B57219DAE48DE646D07DBB533566E"
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A101181E', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A46801D3D61B6E7C964520652F9D3C8347E8A', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39-
"cbor":"D903E08444A101181EA1054D89F52F65A1C580933B5261A72F58246899DA0A132BD2D2B9B10915743EE1F7B92A46801D3D61B6E7C964520652F9D3C8347E8A818340A20125044A6F75722D73656372657440"
38+
"cbor_diag":"96([h'A101181E', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A46801D3D61B6E7C964520652F9D3C8347E8A', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39+
"cbor":"D8608444A101181EA1054D89F52F65A1C580933B5261A72F58246899DA0A132BD2D2B9B10915743EE1F7B92A46801D3D61B6E7C964520652F9D3C8347E8A818340A20125044A6F75722D73656372657440"
4040
}
4141
}

aes-ccm-examples/aes-ccm-03.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"849B57219DAE48DE646D07DBB533566E"
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A1010C', {5: h'89F52F65A1C580'}, h'191BD858DEC79FC11DA3428BDFA446AC240D591F9F0F25E3A3FA4E6C', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39-
"cbor":"D903E08443A1010CA1054789F52F65A1C580581C191BD858DEC79FC11DA3428BDFA446AC240D591F9F0F25E3A3FA4E6C818340A20125044A6F75722D73656372657440"
38+
"cbor_diag":"96([h'A1010C', {5: h'89F52F65A1C580'}, h'191BD858DEC79FC11DA3428BDFA446AC240D591F9F0F25E3A3FA4E6C', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39+
"cbor":"D8608443A1010CA1054789F52F65A1C580581C191BD858DEC79FC11DA3428BDFA446AC240D591F9F0F25E3A3FA4E6C818340A20125044A6F75722D73656372657440"
4040
}
4141
}

aes-ccm-examples/aes-ccm-04.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"849B57219DAE48DE646D07DBB533566E"
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A1011820', {5: h'89F52F65A1C580'}, h'191BD858DEC79FC11DA3428BDFA446AC240D591F59482AEA4157167842D7BF5EDD68EC92', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39-
"cbor":"D903E08444A1011820A1054789F52F65A1C5805824191BD858DEC79FC11DA3428BDFA446AC240D591F59482AEA4157167842D7BF5EDD68EC92818340A20125044A6F75722D73656372657440"
38+
"cbor_diag":"96([h'A1011820', {5: h'89F52F65A1C580'}, h'191BD858DEC79FC11DA3428BDFA446AC240D591F59482AEA4157167842D7BF5EDD68EC92', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39+
"cbor":"D8608444A1011820A1054789F52F65A1C5805824191BD858DEC79FC11DA3428BDFA446AC240D591F59482AEA4157167842D7BF5EDD68EC92818340A20125044A6F75722D73656372657440"
4040
}
4141
}

aes-ccm-examples/aes-ccm-05.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"0F1E2D3C4B5A69788796A5B4C3D2E1F01F2E3D4C5B6A798897A6B5C4D3E2F100"
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A1010B', {5: h'89F52F65A1C580933B5261A72F'}, h'28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917A8A3EF3313D6D332', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39-
"cbor":"D903E08443A1010BA1054D89F52F65A1C580933B5261A72F581C28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917A8A3EF3313D6D332818340A20125044A6F75722D73656372657440"
38+
"cbor_diag":"96([h'A1010B', {5: h'89F52F65A1C580933B5261A72F'}, h'28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917A8A3EF3313D6D332', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39+
"cbor":"D8608443A1010BA1054D89F52F65A1C580933B5261A72F581C28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917A8A3EF3313D6D332818340A20125044A6F75722D73656372657440"
4040
}
4141
}

aes-ccm-examples/aes-ccm-06.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"0F1E2D3C4B5A69788796A5B4C3D2E1F01F2E3D4C5B6A798897A6B5C4D3E2F100"
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A101181F', {5: h'89F52F65A1C580933B5261A72F'}, h'28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917348CDDC1FD07F3653AD991F9DFB65D50', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39-
"cbor":"D903E08444A101181FA1054D89F52F65A1C580933B5261A72F582428B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917348CDDC1FD07F3653AD991F9DFB65D50818340A20125044A6F75722D73656372657440"
38+
"cbor_diag":"96([h'A101181F', {5: h'89F52F65A1C580933B5261A72F'}, h'28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917348CDDC1FD07F3653AD991F9DFB65D50', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39+
"cbor":"D8608444A101181FA1054D89F52F65A1C580933B5261A72F582428B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917348CDDC1FD07F3653AD991F9DFB65D50818340A20125044A6F75722D73656372657440"
4040
}
4141
}

aes-ccm-examples/aes-ccm-07.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"0F1E2D3C4B5A69788796A5B4C3D2E1F01F2E3D4C5B6A798897A6B5C4D3E2F100"
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A1010D', {5: h'89F52F65A1C580'}, h'721908D60812806F2660054238E931ADB575771EE26C547EC3DE06C5', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39-
"cbor":"D903E08443A1010DA1054789F52F65A1C580581C721908D60812806F2660054238E931ADB575771EE26C547EC3DE06C5818340A20125044A6F75722D73656372657440"
38+
"cbor_diag":"96([h'A1010D', {5: h'89F52F65A1C580'}, h'721908D60812806F2660054238E931ADB575771EE26C547EC3DE06C5', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39+
"cbor":"D8608443A1010DA1054789F52F65A1C580581C721908D60812806F2660054238E931ADB575771EE26C547EC3DE06C5818340A20125044A6F75722D73656372657440"
4040
}
4141
}

aes-ccm-examples/aes-ccm-08.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"0F1E2D3C4B5A69788796A5B4C3D2E1F01F2E3D4C5B6A798897A6B5C4D3E2F100"
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A1011821', {5: h'89F52F65A1C580'}, h'721908D60812806F2660054238E931ADB575771EB58752E5F0FB62A828917386A770CE9C', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39-
"cbor":"D903E08444A1011821A1054789F52F65A1C5805824721908D60812806F2660054238E931ADB575771EB58752E5F0FB62A828917386A770CE9C818340A20125044A6F75722D73656372657440"
38+
"cbor_diag":"96([h'A1011821', {5: h'89F52F65A1C580'}, h'721908D60812806F2660054238E931ADB575771EB58752E5F0FB62A828917386A770CE9C', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39+
"cbor":"D8608444A1011821A1054789F52F65A1C5805824721908D60812806F2660054238E931ADB575771EB58752E5F0FB62A828917386A770CE9C818340A20125044A6F75722D73656372657440"
4040
}
4141
}

aes-ccm-examples/aes-ccm-enc-01.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"849B57219DAE48DE646D07DBB533566E"
3636
},
3737
"output":{
38-
"cbor_diag":"993([h'A1010A', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A4680CBE82C6D0DC0033B'])",
39-
"cbor":"D903E18343A1010AA1054D89F52F65A1C580933B5261A72F581C6899DA0A132BD2D2B9B10915743EE1F7B92A4680CBE82C6D0DC0033B"
38+
"cbor_diag":"16([h'A1010A', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A4680CBE82C6D0DC0033B'])",
39+
"cbor":"D08343A1010AA1054D89F52F65A1C580933B5261A72F581C6899DA0A132BD2D2B9B10915743EE1F7B92A4680CBE82C6D0DC0033B"
4040
}
4141
}

aes-ccm-examples/aes-ccm-enc-02.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"849B57219DAE48DE646D07DBB533566E"
3636
},
3737
"output":{
38-
"cbor_diag":"993([h'A101181E', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A4680D1CF133701ACD00D0DD069129FBC1BBD'])",
39-
"cbor":"D903E18344A101181EA1054D89F52F65A1C580933B5261A72F58246899DA0A132BD2D2B9B10915743EE1F7B92A4680D1CF133701ACD00D0DD069129FBC1BBD"
38+
"cbor_diag":"16([h'A101181E', {5: h'89F52F65A1C580933B5261A72F'}, h'6899DA0A132BD2D2B9B10915743EE1F7B92A4680D1CF133701ACD00D0DD069129FBC1BBD'])",
39+
"cbor":"D08344A101181EA1054D89F52F65A1C580933B5261A72F58246899DA0A132BD2D2B9B10915743EE1F7B92A4680D1CF133701ACD00D0DD069129FBC1BBD"
4040
}
4141
}

aes-ccm-examples/aes-ccm-enc-03.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"849B57219DAE48DE646D07DBB533566E"
3636
},
3737
"output":{
38-
"cbor_diag":"993([h'A1010C', {5: h'89F52F65A1C580'}, h'191BD858DEC79FC11DA3428BDFA446AC240D591F0C6FD1DF5163B8AD'])",
39-
"cbor":"D903E18343A1010CA1054789F52F65A1C580581C191BD858DEC79FC11DA3428BDFA446AC240D591F0C6FD1DF5163B8AD"
38+
"cbor_diag":"16([h'A1010C', {5: h'89F52F65A1C580'}, h'191BD858DEC79FC11DA3428BDFA446AC240D591F0C6FD1DF5163B8AD'])",
39+
"cbor":"D08343A1010CA1054789F52F65A1C580581C191BD858DEC79FC11DA3428BDFA446AC240D591F0C6FD1DF5163B8AD"
4040
}
4141
}

aes-ccm-examples/aes-ccm-enc-04.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"849B57219DAE48DE646D07DBB533566E"
3636
},
3737
"output":{
38-
"cbor_diag":"993([h'A1011820', {5: h'89F52F65A1C580'}, h'191BD858DEC79FC11DA3428BDFA446AC240D591F5CCA53D53B98AFBB660C5D0950473D67'])",
39-
"cbor":"D903E18344A1011820A1054789F52F65A1C5805824191BD858DEC79FC11DA3428BDFA446AC240D591F5CCA53D53B98AFBB660C5D0950473D67"
38+
"cbor_diag":"16([h'A1011820', {5: h'89F52F65A1C580'}, h'191BD858DEC79FC11DA3428BDFA446AC240D591F5CCA53D53B98AFBB660C5D0950473D67'])",
39+
"cbor":"D08344A1011820A1054789F52F65A1C5805824191BD858DEC79FC11DA3428BDFA446AC240D591F5CCA53D53B98AFBB660C5D0950473D67"
4040
}
4141
}

aes-ccm-examples/aes-ccm-enc-05.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"0F1E2D3C4B5A69788796A5B4C3D2E1F01F2E3D4C5B6A798897A6B5C4D3E2F100"
3636
},
3737
"output":{
38-
"cbor_diag":"993([h'A1010B', {5: h'89F52F65A1C580933B5261A72F'}, h'28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF9177F13D284E84FFB70'])",
39-
"cbor":"D903E18343A1010BA1054D89F52F65A1C580933B5261A72F581C28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF9177F13D284E84FFB70"
38+
"cbor_diag":"16([h'A1010B', {5: h'89F52F65A1C580933B5261A72F'}, h'28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF9177F13D284E84FFB70'])",
39+
"cbor":"D08343A1010BA1054D89F52F65A1C580933B5261A72F581C28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF9177F13D284E84FFB70"
4040
}
4141
}

aes-ccm-examples/aes-ccm-enc-06.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"0F1E2D3C4B5A69788796A5B4C3D2E1F01F2E3D4C5B6A798897A6B5C4D3E2F100"
3636
},
3737
"output":{
38-
"cbor_diag":"993([h'A101181F', {5: h'89F52F65A1C580933B5261A72F'}, h'28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917EC4F18E86BFDE841DE3D0AAD556ADEA9'])",
39-
"cbor":"D903E18344A101181FA1054D89F52F65A1C580933B5261A72F582428B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917EC4F18E86BFDE841DE3D0AAD556ADEA9"
38+
"cbor_diag":"16([h'A101181F', {5: h'89F52F65A1C580933B5261A72F'}, h'28B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917EC4F18E86BFDE841DE3D0AAD556ADEA9'])",
39+
"cbor":"D08344A101181FA1054D89F52F65A1C580933B5261A72F582428B3BDDFF844A736C5F0EE0F8C691FD0B7ADF917EC4F18E86BFDE841DE3D0AAD556ADEA9"
4040
}
4141
}

aes-ccm-examples/aes-ccm-enc-07.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"0F1E2D3C4B5A69788796A5B4C3D2E1F01F2E3D4C5B6A798897A6B5C4D3E2F100"
3636
},
3737
"output":{
38-
"cbor_diag":"993([h'A1010D', {5: h'89F52F65A1C580'}, h'721908D60812806F2660054238E931ADB575771E465331D0FB822F78'])",
39-
"cbor":"D903E18343A1010DA1054789F52F65A1C580581C721908D60812806F2660054238E931ADB575771E465331D0FB822F78"
38+
"cbor_diag":"16([h'A1010D', {5: h'89F52F65A1C580'}, h'721908D60812806F2660054238E931ADB575771E465331D0FB822F78'])",
39+
"cbor":"D08343A1010DA1054789F52F65A1C580581C721908D60812806F2660054238E931ADB575771E465331D0FB822F78"
4040
}
4141
}

aes-ccm-examples/aes-ccm-enc-08.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"CEK_hex":"0F1E2D3C4B5A69788796A5B4C3D2E1F01F2E3D4C5B6A798897A6B5C4D3E2F100"
3636
},
3737
"output":{
38-
"cbor_diag":"993([h'A1011821', {5: h'89F52F65A1C580'}, h'721908D60812806F2660054238E931ADB575771EF24035606288AE0C24B605B4A9604BBC'])",
39-
"cbor":"D903E18344A1011821A1054789F52F65A1C5805824721908D60812806F2660054238E931ADB575771EF24035606288AE0C24B605B4A9604BBC"
38+
"cbor_diag":"16([h'A1011821', {5: h'89F52F65A1C580'}, h'721908D60812806F2660054238E931ADB575771EF24035606288AE0C24B605B4A9604BBC'])",
39+
"cbor":"D08344A1011821A1054789F52F65A1C5805824721908D60812806F2660054238E931ADB575771EF24035606288AE0C24B605B4A9604BBC"
4040
}
4141
}

aes-gcm-examples/aes-gcm-01.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
]
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A10101', {5: h'02D1F7E6F26C43D4868D87CE'}, h'60973A94BB2898009EE52ECFD9AB1DD25867374B3581F2C80039826350B97AE2300E42FC', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39-
"cbor":"D903E08443A10101A1054C02D1F7E6F26C43D4868D87CE582460973A94BB2898009EE52ECFD9AB1DD25867374B3581F2C80039826350B97AE2300E42FC818340A20125044A6F75722D73656372657440"
38+
"cbor_diag":"96([h'A10101', {5: h'02D1F7E6F26C43D4868D87CE'}, h'60973A94BB2898009EE52ECFD9AB1DD25867374B3581F2C80039826350B97AE2300E42FC', [[h'', {1: -6, 4: h'6F75722D736563726574'}, h'']]])",
39+
"cbor":"D8608443A10101A1054C02D1F7E6F26C43D4868D87CE582460973A94BB2898009EE52ECFD9AB1DD25867374B3581F2C80039826350B97AE2300E42FC818340A20125044A6F75722D73656372657440"
4040
}
4141
}

aes-gcm-examples/aes-gcm-02.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
]
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A10102', {5: h'02D1F7E6F26C43D4868D87CE'}, h'134D3B9223A00C1552C77585C157F467F295919D12124F19F521484C0725410947B4D1CA', [[h'', {1: -6, 4: h'7365632D3438'}, h'']]])",
39-
"cbor":"D903E08443A10102A1054C02D1F7E6F26C43D4868D87CE5824134D3B9223A00C1552C77585C157F467F295919D12124F19F521484C0725410947B4D1CA818340A2012504467365632D343840"
38+
"cbor_diag":"96([h'A10102', {5: h'02D1F7E6F26C43D4868D87CE'}, h'134D3B9223A00C1552C77585C157F467F295919D12124F19F521484C0725410947B4D1CA', [[h'', {1: -6, 4: h'7365632D3438'}, h'']]])",
39+
"cbor":"D8608443A10102A1054C02D1F7E6F26C43D4868D87CE5824134D3B9223A00C1552C77585C157F467F295919D12124F19F521484C0725410947B4D1CA818340A2012504467365632D343840"
4040
}
4141
}

aes-gcm-examples/aes-gcm-03.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
]
3636
},
3737
"output":{
38-
"cbor_diag":"992([h'A10103', {5: h'02D1F7E6F26C43D4868D87CE'}, h'9D64A5A59A3B04867DCCF6B8EF82F7D1A3B25EF862B6EDDB29DF2EF16582172E5B5FC757', [[h'', {1: -6, 4: h'7365632D3634'}, h'']]])",
39-
"cbor":"D903E08443A10103A1054C02D1F7E6F26C43D4868D87CE58249D64A5A59A3B04867DCCF6B8EF82F7D1A3B25EF862B6EDDB29DF2EF16582172E5B5FC757818340A2012504467365632D363440"
38+
"cbor_diag":"96([h'A10103', {5: h'02D1F7E6F26C43D4868D87CE'}, h'9D64A5A59A3B04867DCCF6B8EF82F7D1A3B25EF862B6EDDB29DF2EF16582172E5B5FC757', [[h'', {1: -6, 4: h'7365632D3634'}, h'']]])",
39+
"cbor":"D8608443A10103A1054C02D1F7E6F26C43D4868D87CE58249D64A5A59A3B04867DCCF6B8EF82F7D1A3B25EF862B6EDDB29DF2EF16582172E5B5FC757818340A2012504467365632D363440"
4040
}
4141
}

0 commit comments

Comments
 (0)