Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: src/platform/vboot_reference/tests/sha_test_vectors.h

Issue 1604001: Change to genpadding.sh to use new convention of crypto #includes. (Closed)
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/platform/vboot_reference/crypto/genpadding.sh ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /* FIPS 180-2 test vectors for SHA-1, SHA-256 and SHA-512 */ 6 /* FIPS 180-2 test vectors for SHA-1, SHA-256 and SHA-512 */
7 7
8 #ifndef VBOOT_REFERENCE_SHA_TEST_VECTORS_H_ 8 #ifndef VBOOT_REFERENCE_SHA_TEST_VECTORS_H_
9 #define VBOOT_REFERENCE_SHA_TEST_VECTORS_H_ 9 #define VBOOT_REFERENCE_SHA_TEST_VECTORS_H_
10 10
11 #include "sha.h" 11 #include "cryptolib.h"
12 12
13 char *oneblock_msg = "abc"; 13 char* oneblock_msg = "abc";
14 char *multiblock_msg1 = "abcdbcdecdefdefgefghfghighijhijkijkl" 14 char* multiblock_msg1 = "abcdbcdecdefdefgefghfghighijhijkijkl"
15 "jklmklmnlmnomnopnopq"; 15 "jklmklmnlmnomnopnopq";
16 char *multiblock_msg2= "abcdefghbcdefghicdefghijdefghijkefghi" 16 char* multiblock_msg2= "abcdefghbcdefghicdefghijdefghijkefghi"
17 "jklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnop" 17 "jklfghijklmghijklmnhijklmnoijklmnopjklmnopqklmnopqrlmnop"
18 "qrsmnopqrstnopqrstu"; 18 "qrsmnopqrstnopqrstu";
19 char *long_msg; 19 char* long_msg;
20 20
21 uint8_t sha1_results[][SHA1_DIGEST_SIZE] = { 21 uint8_t sha1_results[][SHA1_DIGEST_SIZE] = {
22 { 22 {
23 0xa9,0x99,0x3e,0x36,0x47,0x06,0x81,0x6a, 23 0xa9,0x99,0x3e,0x36,0x47,0x06,0x81,0x6a,
24 0xba,0x3e,0x25,0x71,0x78,0x50,0xc2,0x6c, 24 0xba,0x3e,0x25,0x71,0x78,0x50,0xc2,0x6c,
25 0x9c,0xd0,0xd8,0x9d 25 0x9c,0xd0,0xd8,0x9d
26 }, 26 },
27 { 27 {
28 0x84,0x98,0x3e,0x44,0x1c,0x3b,0xd2,0x6e, 28 0x84,0x98,0x3e,0x44,0x1c,0x3b,0xd2,0x6e,
29 0xba,0xae,0x4a,0xa1,0xf9,0x51,0x29,0xe5, 29 0xba,0xae,0x4a,0xa1,0xf9,0x51,0x29,0xe5,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 0x8e,0x1f,0x98,0xb1,0x3b,0x20,0x44,0x28, 84 0x8e,0x1f,0x98,0xb1,0x3b,0x20,0x44,0x28,
85 0x56,0x32,0xa8,0x03,0xaf,0xa9,0x73,0xeb, 85 0x56,0x32,0xa8,0x03,0xaf,0xa9,0x73,0xeb,
86 0xde,0x0f,0xf2,0x44,0x87,0x7e,0xa6,0x0a, 86 0xde,0x0f,0xf2,0x44,0x87,0x7e,0xa6,0x0a,
87 0x4c,0xb0,0x43,0x2c,0xe5,0x77,0xc3,0x1b, 87 0x4c,0xb0,0x43,0x2c,0xe5,0x77,0xc3,0x1b,
88 0xeb,0x00,0x9c,0x5c,0x2c,0x49,0xaa,0x2e, 88 0xeb,0x00,0x9c,0x5c,0x2c,0x49,0xaa,0x2e,
89 0x4e,0xad,0xb2,0x17,0xad,0x8c,0xc0,0x9b 89 0x4e,0xad,0xb2,0x17,0xad,0x8c,0xc0,0x9b
90 } 90 }
91 }; 91 };
92 92
93 #endif /* VBOOT_REFERENCE_SHA_TEST_VECTORS_H_ */ 93 #endif /* VBOOT_REFERENCE_SHA_TEST_VECTORS_H_ */
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/crypto/genpadding.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698