OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // Standard test vectors from: | 5 // Standard test vectors from: |
6 // http://csrc.nist.gov/groups/STM/cavp/documents/shs/shabytetestvectors.zip | 6 // http://csrc.nist.gov/groups/STM/cavp/documents/shs/shabytetestvectors.zip |
7 | 7 |
8 final sha1_short_inputs = const [ | 8 const sha1_short_inputs = const [ |
9 const [ ], | 9 const [ ], |
10 const [ 0x36 ], | 10 const [ 0x36 ], |
11 const [ 0x19, 0x5a ], | 11 const [ 0x19, 0x5a ], |
12 const [ 0xdf, 0x4b, 0xd2 ], | 12 const [ 0xdf, 0x4b, 0xd2 ], |
13 const [ 0x54, 0x9e, 0x95, 0x9e ], | 13 const [ 0x54, 0x9e, 0x95, 0x9e ], |
14 const [ 0xf7, 0xfb, 0x1b, 0xe2, 0x05 ], | 14 const [ 0xf7, 0xfb, 0x1b, 0xe2, 0x05 ], |
15 const [ 0xc0, 0xe5, 0xab, 0xea, 0xea, 0x63 ], | 15 const [ 0xc0, 0xe5, 0xab, 0xea, 0xea, 0x63 ], |
16 const [ 0x63, 0xbf, 0xc1, 0xed, 0x7f, 0x78, 0xab ], | 16 const [ 0x63, 0xbf, 0xc1, 0xed, 0x7f, 0x78, 0xab ], |
17 const [ 0x7e, 0x3d, 0x7b, 0x3e, 0xad, 0xa9, 0x88, 0x66 ], | 17 const [ 0x7e, 0x3d, 0x7b, 0x3e, 0xad, 0xa9, 0x88, 0x66 ], |
18 const [ 0x9e, 0x61, 0xe5, 0x5d, 0x9e, 0xd3, 0x7b, 0x1c, 0x20 ], | 18 const [ 0x9e, 0x61, 0xe5, 0x5d, 0x9e, 0xd3, 0x7b, 0x1c, 0x20 ], |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const [ 0xd0, 0xa2, 0x49, 0xa9, 0x7b, 0x5f, 0x14, 0x86, 0x72, 0x1a, 0x50, 0xd4,
0xc4, 0xab, 0x3f, 0x5d, 0x67, 0x4a, 0x0e, 0x29, 0x92, 0x5d, 0x5b, 0xf2, 0x67, 0x
8e, 0xf6, 0xd8, 0xd5, 0x21, 0xe4, 0x56, 0xbd, 0x84, 0xaa, 0x75, 0x53, 0x28, 0xc8
, 0x3f, 0xc8, 0x90, 0x83, 0x77, 0x26, 0xa8, 0xe7, 0x87, 0x7b, 0x57, 0x0d, 0xba,
0x39, 0x57, 0x9a, 0xab, 0xdd ], | 66 const [ 0xd0, 0xa2, 0x49, 0xa9, 0x7b, 0x5f, 0x14, 0x86, 0x72, 0x1a, 0x50, 0xd4,
0xc4, 0xab, 0x3f, 0x5d, 0x67, 0x4a, 0x0e, 0x29, 0x92, 0x5d, 0x5b, 0xf2, 0x67, 0x
8e, 0xf6, 0xd8, 0xd5, 0x21, 0xe4, 0x56, 0xbd, 0x84, 0xaa, 0x75, 0x53, 0x28, 0xc8
, 0x3f, 0xc8, 0x90, 0x83, 0x77, 0x26, 0xa8, 0xe7, 0x87, 0x7b, 0x57, 0x0d, 0xba,
0x39, 0x57, 0x9a, 0xab, 0xdd ], |
67 const [ 0xc3, 0x21, 0x38, 0x53, 0x11, 0x18, 0xf0, 0x8c, 0x7d, 0xcc, 0x29, 0x24,
0x28, 0xad, 0x20, 0xb4, 0x5a, 0xb2, 0x7d, 0x95, 0x17, 0xa1, 0x84, 0x45, 0xf3, 0x
8b, 0x8f, 0x0c, 0x27, 0x95, 0xbc, 0xdf, 0xe3, 0xff, 0xe3, 0x84, 0xe6, 0x5e, 0xcb
, 0xf7, 0x4d, 0x2c, 0x9d, 0x0d, 0xa8, 0x83, 0x98, 0x57, 0x53, 0x26, 0x07, 0x49,
0x04, 0xc1, 0x70, 0x9b, 0xa0, 0x72 ], | 67 const [ 0xc3, 0x21, 0x38, 0x53, 0x11, 0x18, 0xf0, 0x8c, 0x7d, 0xcc, 0x29, 0x24,
0x28, 0xad, 0x20, 0xb4, 0x5a, 0xb2, 0x7d, 0x95, 0x17, 0xa1, 0x84, 0x45, 0xf3, 0x
8b, 0x8f, 0x0c, 0x27, 0x95, 0xbc, 0xdf, 0xe3, 0xff, 0xe3, 0x84, 0xe6, 0x5e, 0xcb
, 0xf7, 0x4d, 0x2c, 0x9d, 0x0d, 0xa8, 0x83, 0x98, 0x57, 0x53, 0x26, 0x07, 0x49,
0x04, 0xc1, 0x70, 0x9b, 0xa0, 0x72 ], |
68 const [ 0xb0, 0xf4, 0xcf, 0xb9, 0x39, 0xea, 0x78, 0x5e, 0xab, 0xb7, 0xe7, 0xca,
0x7c, 0x47, 0x6c, 0xdd, 0x9b, 0x22, 0x7f, 0x01, 0x5d, 0x90, 0x53, 0x68, 0xba, 0x
00, 0xae, 0x96, 0xb9, 0xaa, 0xf7, 0x20, 0x29, 0x74, 0x91, 0xb3, 0x92, 0x12, 0x67
, 0x57, 0x6b, 0x72, 0xc8, 0xf5, 0x8d, 0x57, 0x76, 0x17, 0xe8, 0x44, 0xf9, 0xf0,
0x75, 0x9b, 0x39, 0x9c, 0x6b, 0x06, 0x4c ], | 68 const [ 0xb0, 0xf4, 0xcf, 0xb9, 0x39, 0xea, 0x78, 0x5e, 0xab, 0xb7, 0xe7, 0xca,
0x7c, 0x47, 0x6c, 0xdd, 0x9b, 0x22, 0x7f, 0x01, 0x5d, 0x90, 0x53, 0x68, 0xba, 0x
00, 0xae, 0x96, 0xb9, 0xaa, 0xf7, 0x20, 0x29, 0x74, 0x91, 0xb3, 0x92, 0x12, 0x67
, 0x57, 0x6b, 0x72, 0xc8, 0xf5, 0x8d, 0x57, 0x76, 0x17, 0xe8, 0x44, 0xf9, 0xf0,
0x75, 0x9b, 0x39, 0x9c, 0x6b, 0x06, 0x4c ], |
69 const [ 0xbd, 0x02, 0xe5, 0x1b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 const [ 0xe3, 0x31, 0x46, 0xb8, 0x3e, 0x4b, 0xb6, 0x71, 0x39, 0x22, 0x18, 0xda,
0x9a, 0x77, 0xf8, 0xd9, 0xf5, 0x97, 0x41, 0x47, 0x18, 0x2f, 0xb9, 0x5b, 0xa6, 0x
62, 0xcb, 0x66, 0x01, 0x19, 0x89, 0xc1, 0x6d, 0x9a, 0xf1, 0x04, 0x73, 0x5d, 0x6f
, 0x79, 0x84, 0x1a, 0xa4, 0xd1, 0xdf, 0x27, 0x66, 0x15, 0xb5, 0x01, 0x08, 0xdf,
0x8a, 0x29, 0xdb, 0xc9, 0xde, 0x31, 0xf4, 0x26, 0x0d ], |
71 const [ 0x41, 0x1c, 0x13, 0xc7, 0x50, 0x73, 0xc1, 0xe2, 0xd4, 0xb1, 0xec, 0xf1,
0x31, 0x39, 0xba, 0x96, 0x56, 0xcd, 0x35, 0xc1, 0x42, 0x01, 0xf1, 0xc7, 0xc6, 0x
f0, 0xee, 0xb5, 0x8d, 0x2d, 0xbf, 0xe3, 0x5b, 0xfd, 0xec, 0xcc, 0x92, 0xc3, 0x96
, 0x1c, 0xfa, 0xbb, 0x59, 0x0b, 0xc1, 0xeb, 0x77, 0xea, 0xc1, 0x57, 0x32, 0xfb,
0x02, 0x75, 0x79, 0x86, 0x80, 0xe0, 0xc7, 0x29, 0x2e, 0x50 ], | 71 const [ 0x41, 0x1c, 0x13, 0xc7, 0x50, 0x73, 0xc1, 0xe2, 0xd4, 0xb1, 0xec, 0xf1,
0x31, 0x39, 0xba, 0x96, 0x56, 0xcd, 0x35, 0xc1, 0x42, 0x01, 0xf1, 0xc7, 0xc6, 0x
f0, 0xee, 0xb5, 0x8d, 0x2d, 0xbf, 0xe3, 0x5b, 0xfd, 0xec, 0xcc, 0x92, 0xc3, 0x96
, 0x1c, 0xfa, 0xbb, 0x59, 0x0b, 0xc1, 0xeb, 0x77, 0xea, 0xc1, 0x57, 0x32, 0xfb,
0x02, 0x75, 0x79, 0x86, 0x80, 0x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 0xb0, 0x6e, 0x90, 0x07,
0x39, 0x4d, 0xc3, 0x3b, 0x77, 0x48, 0xf8, 0x6a, 0xc3, 0x20, 0x7c, 0xfe ], | 73 const [ 0x45, 0x92, 0x7e, 0x32, 0xdd, 0xf8, 0x01, 0xca, 0xf3, 0x5e, 0x18, 0xe7,
0xb5, 0x07, 0x8b, 0x7f, 0x54, 0x35, 0x27, 0x82, 0x12, 0xec, 0x6b, 0xb9, 0x9d, 0x
f8, 0x84, 0xf4, 0x9b, 0x32, 0x7c, 0x64, 0x86, 0xfe, 0xae, 0x46, 0xba, 0x18, 0x7d
, 0xc1, 0xcc, 0x91, 0x45, 0x12, 0x1e, 0x14, 0x92, 0xe6, 0xb0, 0x6e, 0x90, 0x07,
0x39, 0x4d, 0xc3, 0x3b, 0x77, 0x48, 0xf8, 0x6a, 0xc3, 0x20, 0x7c, 0xfe ], |
74 ]; | 74 ]; |
75 | 75 |
76 final sha1_short_mds = const [ | 76 const sha1_short_mds = const [ |
77 'da39a3ee5e6b4b0d3255bfef95601890afd80709', | 77 'da39a3ee5e6b4b0d3255bfef95601890afd80709', |
78 'c1dfd96eea8cc2b62785275bca38ac261256e278', | 78 'c1dfd96eea8cc2b62785275bca38ac261256e278', |
79 '0a1c2d555bbe431ad6288af5a54f93e0449c9232', | 79 '0a1c2d555bbe431ad6288af5a54f93e0449c9232', |
80 'bf36ed5d74727dfd5d7854ec6b1d49468d8ee8aa', | 80 'bf36ed5d74727dfd5d7854ec6b1d49468d8ee8aa', |
81 'b78bae6d14338ffccfd5d5b5674a275f6ef9c717', | 81 'b78bae6d14338ffccfd5d5b5674a275f6ef9c717', |
82 '60b7d5bb560a1acf6fa45721bd0abb419a841a89', | 82 '60b7d5bb560a1acf6fa45721bd0abb419a841a89', |
83 'a6d338459780c08363090fd8fc7d28dc80e8e01f', | 83 'a6d338459780c08363090fd8fc7d28dc80e8e01f', |
84 '860328d80509500c1783169ebf0ba0c4b94da5e5', | 84 '860328d80509500c1783169ebf0ba0c4b94da5e5', |
85 '24a2c34b976305277ce58c2f42d5092031572520', | 85 '24a2c34b976305277ce58c2f42d5092031572520', |
86 '411ccee1f6e3677df12698411eb09d3ff580af97', | 86 '411ccee1f6e3677df12698411eb09d3ff580af97', |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 'aef843b86916c16f66c84d83a6005d23fd005c9e', | 133 'aef843b86916c16f66c84d83a6005d23fd005c9e', |
134 'be2cd6f380969be59cde2dff5e848a44e7880bd6', | 134 'be2cd6f380969be59cde2dff5e848a44e7880bd6', |
135 'e5eb4543deee8f6a5287845af8b593a95a9749a1', | 135 'e5eb4543deee8f6a5287845af8b593a95a9749a1', |
136 '534c850448dd486787b62bdec2d4a0b140a1b170', | 136 '534c850448dd486787b62bdec2d4a0b140a1b170', |
137 '6fbfa6e4edce4cc85a845bf0d228dc39acefc2fa', | 137 '6fbfa6e4edce4cc85a845bf0d228dc39acefc2fa', |
138 '018872691d9b04e8220e09187df5bc5fa6257cd9', | 138 '018872691d9b04e8220e09187df5bc5fa6257cd9', |
139 'd98d512a35572f8bd20de62e9510cc21145c5bf4', | 139 'd98d512a35572f8bd20de62e9510cc21145c5bf4', |
140 '9f3ea255f6af95c5454e55d7354cabb45352ea0b', | 140 '9f3ea255f6af95c5454e55d7354cabb45352ea0b', |
141 'a70cfbfe7563dd0e665c7c6715a96a8d756950c0', | 141 'a70cfbfe7563dd0e665c7c6715a96a8d756950c0', |
142 ]; | 142 ]; |
OLD | NEW |