-
Notifications
You must be signed in to change notification settings - Fork 6
/
meta_test_vector.json
92 lines (92 loc) · 6.66 KB
/
meta_test_vector.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "meta tests",
"proto_string": "custom string number 2, that's a pretty long string",
"security": 128,
"_comment": "These were taken from https://github.com/mimoo/StrobeGo/blob/master/strobe/test_vectors/test_vectors.json. Thanks David!",
"_comment": "NOTE: recv_MAC throws an authentication error in this file. This is expected.",
"operations": [
{
"name": "init",
"meta": false,
"input_data": "",
"state_after": "9c7f75fa8b893ab70ad448513c0b5243b2792a3e306706c45f1b9e4a9018920ff37e485e146b9d66fb6a1b4d6f8933e7561d2392d12d331293cc92e8a624acf6e1b60095e322bbfbc845e5b26995fe7d7c841374d1ff5898c92ee0636b06727321c92a603907035349ccbb1b92b7b0057e8fa87fcebc7e88656fcb45ae04bc34cabeaebe79d91750c0e8bf13b966504d1343597265dd8865adf91409cc9b20d5f47444041f97b699ddfbdee91ea87bd09bf8b02da75a96e947f07f5b65bb4e6efefaa16abfd9fbf6",
"stream": false
},
{
"name": "KEY",
"meta": false,
"input_data": "303130313031",
"state_after": "303130313031c70245935ce6fc2fffb47011279f887312c498f2a44a5aafb316e25f24fd46140c84c87f6613d7ff30a22d105ea7b8cde98ac104cf72d0c913bd71c6b7918cf8d1a15f8aa2b6bd6b92416e709b9678b52358884b3855dc4714ae0b93338829fbca58361efeeb58c41e9511258beba1322752c123696de8c20159b6b17303f56df8741c6fecc991611ca8f755d54bed57960feb032f47d64df53030a491151fe6f4cdd0c48f9c0a81e5bce406de061283d6257ac6ef2babc776e5dee146793acef9cf",
"stream": false
},
{
"name": "AD",
"meta": true,
"input_data": "68656c6c6f2c20686f772061726520796f7520676f6f64207369723f",
"state_after": "303130313031c7102df6308a9303dfdc1f6607fefa1632bdf787842d35c0d736913656c246140c84c87f6613d7ff30a22d105ea7b8cde98ac104cf72d0c913bd71c6b7918cf8d1a15f8aa2b6bd6b92416e709b9678b52358884b3855dc4714ae0b93338829fbca58361efeeb58c41e9511258beba1322752c123696de8c20159b6b17303f56df8741c6fecc991611ca8f755d54bed57960feb032f47d64df53030a491151fe6f4cdd0c48f9c0a81e5bce406de061283d6257ac6ef2babc776e5dee146793acef9cf",
"stream": false
},
{
"name": "PRF",
"meta": false,
"input_data": "00000000000000000000000000000000",
"output": "87e57623d5c80f6d1083473a288ccdd7",
"state_after": "0000000000000000000000000000000043b52a0e602d1f0ae3ef2604208be72c684fd6815a51820c6309f8a058b5c0789fd3caed49beb6c495a7750d1b542432eaa236d335b6fb348befdccd7104543aade1a95d7a92f5126586ae19a97e067712e23f9d818e3476bcc6fdbf6eec68911c59554ad3ec1cdd030ef5317de98593339d8e2858c26f1974475848d01d4a616be74e54321585a6da031bdbc2e0e47fb7f3d7deab9e814d76945a40c2c017960214317f7e113b877410fd3bbebf77cc66963763ebdd4a23",
"stream": false
},
{
"name": "send_ENC",
"meta": true,
"input_data": "686920686f772061726520796f75",
"output": "f443f226de75b9f1e5d87c0b3bf0",
"state_after": "f443f226de75b9f1e5d87c0b3bf057362d4e1d65392207325a927e5066dcb3edfa95a62cac1928df260fb657e717e2453922e81e8748bb3a21fe46d4bf96d2f3c8588cb5d41c87b612e655c5ecaa5b36ca8a2eeff451f95f3d6c74248fff34170515f53830128fdad20ee2833077c542f4be17d587c409a741ae22e552ef33e29cfec9dc6d4175351f7a078eea1cdb48af8b53696de94b97d1f5a60535754d9d86b95298647dbece3721c84a4d79275874a92a19d3ae54598e4ad36297ce0cc1bf02f0c61cc9cd2d",
"stream": false
},
{
"name": "recv_ENC",
"meta": true,
"input_data": "686920686f772061726520796f75",
"output": "a14f034475e956e83d9d2f4e5c1e",
"state_after": "686920686f772061726520796f7558c754fc438956e93e4d7fafc2959c69103ff950b4207215888c9f418d0e36d7fc3f27e97ba405134df0926aa429825f99cf16b150fcbbd39dbcc07ba96fb3b2805aa6021d401b934d7eb85c6d1c386be8b312a7286348af8313d359f422f8c450559f91e94ab392e085e05ba73dfc62ab8a5b133114dad48fcfd3f03042283373f51cf36e498a39db073ba5f3c366313a266c156c6b276e9c6d068cf7b2f65615a69b23eadfc812a76a89d0c7547a1b496c65d8782ce02b92ce",
"stream": false
},
{
"name": "send_MAC",
"meta": true,
"input_data": "00000000000000000000000000000000",
"output": "ea4dcfc763fb0492c94c2d21c3cd8083",
"state_after": "ea4dcfc763fb0492c94c2d21c3cd80834bda5f60082c659eab8551e36b96cd43667e466789dc3a5301e1ff253517104e160a9471002f2918a74cf9b4af529c2e5b0e118f7430562ec7aed464d677d8fb8ac0834be753afc973fa289332aa53f0b252622594bd9e91eed94d2e19483f2c3ef23866cf90413ca15bc1a6137f1c315031ed4cc8d2b1f10f1bd96f300d38fe4329bc52b655fbbe0a67edba02e529b9d4b0566ce382d7bfbeb03aadfd465fb14bb55f8c36864696b1bca90b32c66f9d3570f7595919903b",
"stream": false
},
{
"name": "recv_MAC",
"meta": true,
"input_data": "686920686f772061726520796f75",
"state_after": "686920686f772061726520796f759a10fcf2396b6a8a6476533c461996b4169cea7cb73f575022be59d0f9a7a98a7fd1c483ccb57310e0c40bde3882e8332217019c716e3f1fc56164dc038a0b28b8169d4e38a24ca7af824654fe37e009a644562de4f0caa825206512d5163638922700f86fe06b6950df9510953390e02310b09cc75c30d884612c617954b37b388e5cf2c8110940efa7b985a666a9a38fcb5040ecf5bed513bf397f2e93530be83b1b92cdc8d407185d2700207a1df85de5f34e754fab507252",
"stream": false
},
{
"name": "send_CLR",
"meta": true,
"input_data": "686920686f772061726520796f75",
"output": "686920686f772061726520796f75",
"state_after": "686920686f772061726520796f759a0a949b190305fd441721596660f9c1169cea7cb73f575022be59d0f9a7a98a7fd1c483ccb57310e0c40bde3882e8332217019c716e3f1fc56164dc038a0b28b8169d4e38a24ca7af824654fe37e009a644562de4f0caa825206512d5163638922700f86fe06b6950df9510953390e02310b09cc75c30d884612c617954b37b388e5cf2c8110940efa7b985a666a9a38fcb5040ecf5bed513bf397f2e93530be83b1b92cdc8d407185d2700207a1df85de5f34e754fab507252",
"stream": false
},
{
"name": "recv_CLR",
"meta": true,
"input_data": "686920686f772061726520796f75",
"output": "686920686f772061726520796f75",
"state_after": "686920686f772061726520796f759a0a949b190305fd441721596660f9c1198782159757382702df2bb5d9dec6ff7fd1c483ccb57310e0c40bde3882e8332217019c716e3f1fc56164dc038a0b28b8169d4e38a24ca7af824654fe37e009a644562de4f0caa825206512d5163638922700f86fe06b6950df9510953390e02310b09cc75c30d884612c617954b37b388e5cf2c8110940efa7b985a666a9a38fcb5040ecf5bed513bf397f2e93530be83b1b92cdc8d407185d2700207a1df85de5f34e754fab507252",
"stream": false
},
{
"name": "RATCHET",
"meta": true,
"input_data": "0000000000000000000000000000000000000000000000000000000000000000",
"state_after": "00000000000000000000000000000000000000000000000000000000000000009f8ed329237711ff2a4225b0b01d0ef66dcc86a64ae97d28ad9d04507e638c649eae8b798fd36beca30ba37c5ebaf3049dc34107a33c847307a00b60201f3de9ad27fb745acd57d16c334f07cdb34c9518f89ce835912da28cda7f0b67b0e3a4ab5dff54984bcb50136ee74e22569e4a75201f019b5e4e156a1bd9289659683958eadc5b7f2846d110fb6c0faaba64cce760b000c11317e80c4f169fd7e9280ceb4b5e4e97ed50b4",
"stream": false
}
]
}