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 sha256_short_inputs = const [ | 8 const sha256_short_inputs = const [ |
9 const [ ], | 9 const [ ], |
10 const [ 0xd3 ], | 10 const [ 0xd3 ], |
11 const [ 0x11, 0xaf ], | 11 const [ 0x11, 0xaf ], |
12 const [ 0xb4, 0x19, 0x0e ], | 12 const [ 0xb4, 0x19, 0x0e ], |
13 const [ 0x74, 0xba, 0x25, 0x21 ], | 13 const [ 0x74, 0xba, 0x25, 0x21 ], |
14 const [ 0xc2, 0x99, 0x20, 0x96, 0x82 ], | 14 const [ 0xc2, 0x99, 0x20, 0x96, 0x82 ], |
15 const [ 0xe1, 0xdc, 0x72, 0x4d, 0x56, 0x21 ], | 15 const [ 0xe1, 0xdc, 0x72, 0x4d, 0x56, 0x21 ], |
16 const [ 0x06, 0xe0, 0x76, 0xf5, 0xa4, 0x42, 0xd5 ], | 16 const [ 0x06, 0xe0, 0x76, 0xf5, 0xa4, 0x42, 0xd5 ], |
17 const [ 0x57, 0x38, 0xc9, 0x29, 0xc4, 0xf4, 0xcc, 0xb6 ], | 17 const [ 0x57, 0x38, 0xc9, 0x29, 0xc4, 0xf4, 0xcc, 0xb6 ], |
18 const [ 0x33, 0x34, 0xc5, 0x80, 0x75, 0xd3, 0xf4, 0x13, 0x9e ], | 18 const [ 0x33, 0x34, 0xc5, 0x80, 0x75, 0xd3, 0xf4, 0x13, 0x9e ], |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const [ 0x4c, 0xac, 0xe4, 0x22, 0xe4, 0xa0, 0x15, 0xa7, 0x54, 0x92, 0xb3, 0xb3,
0xbb, 0xfb, 0xdf, 0x37, 0x58, 0xea, 0xff, 0x4f, 0xe5, 0x04, 0xb4, 0x6a, 0x26, 0x
c9, 0x0d, 0xac, 0xc1, 0x19, 0xfa, 0x90, 0x50, 0xf6, 0x03, 0xd2, 0xb5, 0x8b, 0x39
, 0x8c, 0xad, 0x6d, 0x6d, 0x9f, 0xa9, 0x22, 0xa1, 0x54, 0xd9, 0xe0, 0xbc, 0x43,
0x89, 0x96, 0x82, 0x74, 0xb0 ], | 66 const [ 0x4c, 0xac, 0xe4, 0x22, 0xe4, 0xa0, 0x15, 0xa7, 0x54, 0x92, 0xb3, 0xb3,
0xbb, 0xfb, 0xdf, 0x37, 0x58, 0xea, 0xff, 0x4f, 0xe5, 0x04, 0xb4, 0x6a, 0x26, 0x
c9, 0x0d, 0xac, 0xc1, 0x19, 0xfa, 0x90, 0x50, 0xf6, 0x03, 0xd2, 0xb5, 0x8b, 0x39
, 0x8c, 0xad, 0x6d, 0x6d, 0x9f, 0xa9, 0x22, 0xa1, 0x54, 0xd9, 0xe0, 0xbc, 0x43,
0x89, 0x96, 0x82, 0x74, 0xb0 ], |
67 const [ 0x86, 0x20, 0xb8, 0x6f, 0xbc, 0xaa, 0xce, 0x4f, 0xf3, 0xc2, 0x92, 0x1b,
0x84, 0x66, 0xdd, 0xd7, 0xba, 0xca, 0xe0, 0x7e, 0xef, 0xef, 0x69, 0x3c, 0xf1, 0x
77, 0x62, 0xdc, 0xab, 0xb8, 0x9a, 0x84, 0x01, 0x0f, 0xc9, 0xa0, 0xfb, 0x76, 0xce
, 0x1c, 0x26, 0x59, 0x3a, 0xd6, 0x37, 0xa6, 0x12, 0x53, 0xf2, 0x24, 0xd1, 0xb1,
0x4a, 0x05, 0xad, 0xdc, 0xca, 0xbe ], | 67 const [ 0x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0x3f, 0x6e, 0x3c, 0xf7, 0xc3, 0x12, 0xff, 0xdf, 0xba,
0x61, 0xb1, 0x26, 0x0c, 0x37, 0x12, 0x9c, 0x1a, 0xfb, 0x39, 0x10, 0x47, 0x19, 0x
33, 0x67, 0xb7, 0xb2, 0xed, 0xeb, 0x57, 0x92, 0x53, 0xe5, 0x1d, 0x62, 0xba, 0x6d
, 0x91, 0x1e, 0x7b, 0x81, 0x8c, 0xca, 0xe1, 0x55, 0x3f, 0x61, 0x46, 0xea, 0x78,
0x0f, 0x78, 0xe2, 0x21, 0x9f, 0x62, 0x93, 0x09 ], | 69 const [ 0xf4, 0x99, 0xcc, 0x3f, 0x6e, 0x3c, 0xf7, 0xc3, 0x12, 0xff, 0xdf, 0xba,
0x61, 0xb1, 0x26, 0x0c, 0x37, 0x12, 0x9c, 0x1a, 0xfb, 0x39, 0x10, 0x47, 0x19, 0x
33, 0x67, 0xb7, 0xb2, 0xed, 0xeb, 0x57, 0x92, 0x53, 0xe5, 0x1d, 0x62, 0xba, 0x6d
, 0x91, 0x1e, 0x7b, 0x81, 0x8c, 0xca, 0xe1, 0x55, 0x3f, 0x61, 0x46, 0xea, 0x78,
0x0f, 0x78, 0xe2, 0x21, 0x9f, 0x62, 0x93, 0x09 ], |
70 const [ 0x6d, 0xd6, 0xef, 0xd6, 0xf6, 0xca, 0xa6, 0x3b, 0x72, 0x9a, 0xa8, 0x18,
0x6e, 0x30, 0x8b, 0xc1, 0xbd, 0xa0, 0x63, 0x07, 0xc0, 0x5a, 0x2c, 0x0a, 0xe5, 0x
a3, 0x68, 0x4e, 0x6e, 0x46, 0x08, 0x11, 0x74, 0x86, 0x90, 0xdc, 0x2b, 0x58, 0x77
, 0x59, 0x67, 0xcf, 0xcc, 0x64, 0x5f, 0xd8, 0x20, 0x64, 0xb1, 0x27, 0x9f, 0xdc,
0xa7, 0x71, 0x80, 0x3d, 0xb9, 0xdc, 0xa0, 0xff, 0x53 ], | 70 const [ 0x6d, 0xd6, 0x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 0x77, 0xf3, 0x35, 0x39, 0x03,
0x94, 0xc3, 0x7f, 0xa1, 0xa9, 0xf9, 0xbe, 0x83, 0x6a, 0xc2, 0x85, 0x09 ], | 73 const [ 0x5a, 0x86, 0xb7, 0x37, 0xea, 0xea, 0x8e, 0xe9, 0x76, 0xa0, 0xa2, 0x4d,
0xa6, 0x3e, 0x7e, 0xd7, 0xee, 0xfa, 0xd1, 0x8a, 0x10, 0x1c, 0x12, 0x11, 0xe2, 0x
b3, 0x65, 0x0c, 0x51, 0x87, 0xc2, 0xa8, 0xa6, 0x50, 0x54, 0x72, 0x08, 0x25, 0x1f
, 0x6d, 0x42, 0x37, 0xe6, 0x61, 0xc7, 0xbf, 0x4c, 0x77, 0xf3, 0x35, 0x39, 0x03,
0x94, 0xc3, 0x7f, 0xa1, 0xa9, 0xf9, 0xbe, 0x83, 0x6a, 0xc2, 0x85, 0x09 ], |
74 ]; | 74 ]; |
75 | 75 |
76 final sha256_short_mds = const [ | 76 const sha256_short_mds = const [ |
77 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', | 77 'e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', |
78 '28969cdfa74a12c82f3bad960b0b000aca2ac329deea5c2328ebc6f2ba9802c1', | 78 '28969cdfa74a12c82f3bad960b0b000aca2ac329deea5c2328ebc6f2ba9802c1', |
79 '5ca7133fa735326081558ac312c620eeca9970d1e70a4b95533d956f072d1f98', | 79 '5ca7133fa735326081558ac312c620eeca9970d1e70a4b95533d956f072d1f98', |
80 'dff2e73091f6c05e528896c4c831b9448653dc2ff043528f6769437bc7b975c2', | 80 'dff2e73091f6c05e528896c4c831b9448653dc2ff043528f6769437bc7b975c2', |
81 'b16aa56be3880d18cd41e68384cf1ec8c17680c45a02b1575dc1518923ae8b0e', | 81 'b16aa56be3880d18cd41e68384cf1ec8c17680c45a02b1575dc1518923ae8b0e', |
82 'f0887fe961c9cd3beab957e8222494abb969b1ce4c6557976df8b0f6d20e9166', | 82 'f0887fe961c9cd3beab957e8222494abb969b1ce4c6557976df8b0f6d20e9166', |
83 'eca0a060b489636225b4fa64d267dabbe44273067ac679f20820bddc6b6a90ac', | 83 'eca0a060b489636225b4fa64d267dabbe44273067ac679f20820bddc6b6a90ac', |
84 '3fd877e27450e6bbd5d74bb82f9870c64c66e109418baa8e6bbcff355e287926', | 84 '3fd877e27450e6bbd5d74bb82f9870c64c66e109418baa8e6bbcff355e287926', |
85 '963bb88f27f512777aab6c8b1a02c70ec0ad651d428f870036e1917120fb48bf', | 85 '963bb88f27f512777aab6c8b1a02c70ec0ad651d428f870036e1917120fb48bf', |
86 '078da3d77ed43bd3037a433fd0341855023793f9afd08b4b08ea1e5597ceef20', | 86 '078da3d77ed43bd3037a433fd0341855023793f9afd08b4b08ea1e5597ceef20', |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 'cfb88d6faf2de3a69d36195acec2e255e2af2b7d933997f348e09f6ce5758360', | 133 'cfb88d6faf2de3a69d36195acec2e255e2af2b7d933997f348e09f6ce5758360', |
134 '4d54b2d284a6794581224e08f675541c8feab6eefa3ac1cfe5da4e03e62f72e4', | 134 '4d54b2d284a6794581224e08f675541c8feab6eefa3ac1cfe5da4e03e62f72e4', |
135 'dba490256c9720c54c612a5bd1ef573cd51dc12b3e7bd8c6db2eabe0aacb846b', | 135 'dba490256c9720c54c612a5bd1ef573cd51dc12b3e7bd8c6db2eabe0aacb846b', |
136 '02804978eba6e1de65afdbc6a6091ed6b1ecee51e8bff40646a251de6678b7ef', | 136 '02804978eba6e1de65afdbc6a6091ed6b1ecee51e8bff40646a251de6678b7ef', |
137 '0b66c8b4fefebc8dc7da0bbedc1114f228aa63c37d5c30e91ab500f3eadfcec5', | 137 '0b66c8b4fefebc8dc7da0bbedc1114f228aa63c37d5c30e91ab500f3eadfcec5', |
138 'c464a7bf6d180de4f744bb2fe5dc27a3f681334ffd54a9814650e60260a478e3', | 138 'c464a7bf6d180de4f744bb2fe5dc27a3f681334ffd54a9814650e60260a478e3', |
139 'd6859c0b5a0b66376a24f56b2ab104286ed0078634ba19112ace0d6d60a9c1ae', | 139 'd6859c0b5a0b66376a24f56b2ab104286ed0078634ba19112ace0d6d60a9c1ae', |
140 '18041bd4665083001fba8c5411d2d748e8abbfdcdfd9218cb02b68a78e7d4c23', | 140 '18041bd4665083001fba8c5411d2d748e8abbfdcdfd9218cb02b68a78e7d4c23', |
141 '42e61e174fbb3897d6dd6cef3dd2802fe67b331953b06114a65c772859dfc1aa', | 141 '42e61e174fbb3897d6dd6cef3dd2802fe67b331953b06114a65c772859dfc1aa', |
142 ]; | 142 ]; |
OLD | NEW |