diff options
author | Jack Lloyd <[email protected]> | 2018-10-29 17:49:10 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-10-29 18:01:18 -0400 |
commit | 672a73a5b7d8f447bc8f471dda8e4d20d2345307 (patch) | |
tree | 5fbe86267bc2f4e7cece969f6f761e9d78d66f18 /src/tests/data/tss | |
parent | 41e39cba057e5ed5eb9f078efbcf9cb576256282 (diff) |
Fixes and improvments for TSS code
Fix a bug (bad length field), new APIs, etc
Diffstat (limited to 'src/tests/data/tss')
-rw-r--r-- | src/tests/data/tss/generation.vec | 50 | ||||
-rw-r--r-- | src/tests/data/tss/recovery.vec | 24 |
2 files changed, 74 insertions, 0 deletions
diff --git a/src/tests/data/tss/generation.vec b/src/tests/data/tss/generation.vec new file mode 100644 index 000000000..2217f46b8 --- /dev/null +++ b/src/tests/data/tss/generation.vec @@ -0,0 +1,50 @@ + +# Generated by https://github.com/seb-m/tss + +Input = 010203040506070809 +Id = 000102030405060708090a0b0c0d0e0f +M = 2 +N = 2 +Hash = SHA-256 +RNG = f97c494be6209aa56d3724f761287328037e63a54cc45556b4ed1847f0e4a64609d05038a7f0c962f4 +Shares = 000102030405060708090a0b0c0d0e0f0202002a01f87e4a4fe3269dad6470c0191e096c5b2523b2d31432b74aa7f5a52b7117d3deebda776e8e658b8d3b,000102030405060708090a0b0c0d0e0f0202002a02e8fa9192d2462859d329ac1bbd71f92320a11727c06548b060d98de27a202214f0b187267c6ecb2b3c + +Input = 010203040506070809 +Id = 000102030405060708090a0b0c0d0e0f +M = 2 +N = 2 +Hash = None +RNG = 9fe3b9dd722f908784 +Shares = 000102030405060708090a0b0c0d0e0f0002000a019ee1bad97729978f8d,000102030405060708090a0b0c0d0e0f0002000a0224df6aa5e1583c1d1a + +Input = 010203040506070809 +Id = 0001 +M = 2 +N = 3 +Hash = None +RNG = 9029efdc18eed8aee4 +Shares = 000100000000000000000000000000000002000a01912becd81de8dfa6ed,000100000000000000000000000000000002000a023a50c6a735c1ac4fda,000100000000000000000000000000000002000a03aa79297b2d2f74e13e + +Input = 010203040506070809 +Id = 0001 +M = 3 +N = 5 +Hash = None +RNG = c4aa8d6ff358dca4deb47125d81e41d242f8 +Shares = 000100000000000000000000000000000003000a016fe0a87c6f52c19bb3,000100000000000000000000000000000003000a020ca485014470d4ef40,000100000000000000000000000000000003000a0362462e792e24127cfa,000100000000000000000000000000000003000a0472aa15f7e5bfb19803,000100000000000000000000000000000003000a051c48be8f8feb770bb9 + +Input = 010203040506070809 +Id = 0001 +M = 3 +N = 5 +Hash = SHA-1 +RNG = 70347405a81c646db869a6932948332ca05b554927b816d9233444e05c2028a957fef36a7c27ef8983edfca718936f959af393262727880654fc +Shares = 000100000000000000000000000000000103001e014573b70dd4336617f2aa5ade909f7b269c8a4d7d7a76bfb112315c2247,000100000000000000000000000000000103001e0231fe3863d12b6ede25235d74111e3f654e5d72cc90647ef7b5218ebf9a,000100000000000000000000000000000103001e03758f8c6a001e0fc1de3fc2bb06ba43e4e7c429aafe3ff50ddc948e3132,000100000000000000000000000000000103001e04b7994e05195b4f3278052c7666b25a790b08bbc27c6ea77f8ca886dafd,000100000000000000000000000000000103001e05f3e8fa0cc86e2e2d8319b3b9711626f8a291e0a412352c85e51d865455 + +Input = 010203040506070809 +Id = 0001 +M = 5 +N = 17 +Hash = None +RNG = 00ec467b2f562fc871e37a5d14065d8c7259958b3d2c7b72e12ded83057be83e6895ed5f +Shares = 000100000000000000000000000000000005000a01d09cb6c7301ea5a046,000100000000000000000000000000000005000a026b481af23258ab3915,000100000000000000000000000000000005000a033534a8e4544151d702,000100000000000000000000000000000005000a04faf1590591a71981da,000100000000000000000000000000000005000a052415fe0e55b970a65e,000100000000000000000000000000000005000a0684ea780108f143b630,000100000000000000000000000000000005000a07d5ecd8df9fee72d7ec,000100000000000000000000000000000005000a08c104446bfbc57593de,000100000000000000000000000000000005000a0926cca5dc70c1ad32eb,000100000000000000000000000000000005000a0ad3b3cd8705abdbb6c0,000100000000000000000000000000000005000a0bbb992be5ddae5b51ad,000100000000000000000000000000000005000a0c9a49c5bb68249a2afc,000100000000000000000000000000000005000a0d72fb36c41226890402,000100000000000000000000000000000005000a0e9caf74a53842c20914,000100000000000000000000000000000005000a0ffbff800f11418961b2,000100000000000000000000000000000005000a1015386257cf3e465c9d,000100000000000000000000000000000005000a1108b4a4ad9a5ee1d6d7 diff --git a/src/tests/data/tss/recovery.vec b/src/tests/data/tss/recovery.vec new file mode 100644 index 000000000..06704c0c8 --- /dev/null +++ b/src/tests/data/tss/recovery.vec @@ -0,0 +1,24 @@ + +[Valid] +M = 2 +N = 2 +Shares = 000102030405060708090a0b0c0d0e0f0202002901dae7fc9ea17b6d120af753e85a28e224109e12ae3bfd885a6209d142b4a0c26dac6f148be9ad11d8,000102030405060708090a0b0c0d0e0f0202002902acd3e62b56fcd33cbe62b1be8b825a7b6474585918908afa9eac22a746e014a947262b63a4fd933d +Recovered = 0102030405060708 + +M = 3 +N = 5 +Shares = 4d15a4f79c02af474cf0a85d39ddc85300030019010773d64642dc18a85158f91d69546202854bc9ed910e9173,4d15a4f79c02af474cf0a85d39ddc853000300190274ac6503a0a6f54dfe9bd135cc759a06b214625d8da2f5ec,4d15a4f79c02af474cf0a85d39ddc853000300190334b5d5731bca274635b37b85707afc86198f16f57fa57ce4,4d15a4f79c02af474cf0a85d39ddc8530003001904db009b259b8982a9db67552714c770db64cac422e0e66464,4d15a4f79c02af474cf0a85d39ddc85300030019059b192b5520e550a2104fff97a8c8165bcf51b08a12e1ed6c +Recovered = 476a6636f9b0caa39a7053add55b04822ed0bd456309187b + +# This is an invalid (per spec) TSS share with bad length fields, as generated by versions < 2.9 +M = 2 +N = 4 +Shares = 000102030405060708090A0B0C0D0E0F02020005019DFEAFAC164A35EA4545E0916DD5818C3DDCADE00DF828EBB9B14F84CC4623BE3E6A90476E,000102030405060708090A0B0C0D0E0F0202000502BD48D0DF2CDDA89651C96B8283BB353B44B7F1A0D4F7B7BD0343D640DE9AC0005E662DBDB6,000102030405060708090A0B0C0D0E0F020200050354D30C073A592A4B5D44127AD96859569A67C5696AF2C28F9CE4A1F5D027686A7E6246EBFE,000102030405060708090A0B0C0D0E0F0202000504FD3F2E3958E8896E79CA66A44467464EB66149207DE992116CBCFFD3FA391D679E7E4C521D +Recovered = 7465737400 + +[Invalid] + +M = 2 +N = 2 +Shares = 000102030405060708090a0b0c0d0e0f0202002901dae7fc9ea17b6d120af753e85a28e224109e12ae3bfd885a6209d142b4a0c26dac6f148be9ad11d8,000102030405060708090a0b0c0d0e0f0202002902acd3e62b56fcd33cbe62b1be8b825a7b6474585918908afa9eac22a746e014a947262b63a4fd933e +Recovered = 0102030405060708 |