Gaurav Shah | 3a87852 | 2010-02-04 18:58:48 -0800 | [diff] [blame^] | 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 |
| 3 | * found in the LICENSE file. |
| 4 | */ |
| 5 | |
Gaurav Shah | 322536d | 2010-01-28 15:01:23 -0800 | [diff] [blame] | 6 | #ifndef VBOOT_REFERENCE_PADDING_H_ |
| 7 | #define VBOOT_REFERENCE_PADDING_H_ |
| 8 | |
| 9 | #include <inttypes.h> |
| 10 | |
| 11 | extern const uint8_t paddingRSA1024_SHA1[]; |
| 12 | extern const uint8_t paddingRSA1024_SHA256[]; |
| 13 | extern const uint8_t paddingRSA1024_SHA512[]; |
| 14 | extern const uint8_t paddingRSA2048_SHA1[]; |
| 15 | extern const uint8_t paddingRSA2048_SHA256[]; |
| 16 | extern const uint8_t paddingRSA2048_SHA512[]; |
| 17 | extern const uint8_t paddingRSA4096_SHA1[]; |
| 18 | extern const uint8_t paddingRSA4096_SHA256[]; |
| 19 | extern const uint8_t paddingRSA4096_SHA512[]; |
| 20 | extern const uint8_t paddingRSA8192_SHA1[]; |
| 21 | extern const uint8_t paddingRSA8192_SHA256[]; |
| 22 | extern const uint8_t paddingRSA8192_SHA512[]; |
| 23 | |
| 24 | extern const int kNumAlgorithms; |
| 25 | |
Gaurav Shah | 8bf29d8 | 2010-01-28 19:43:24 -0800 | [diff] [blame] | 26 | extern const int digestinfo_size_map[]; |
Gaurav Shah | 322536d | 2010-01-28 15:01:23 -0800 | [diff] [blame] | 27 | extern const int siglen_map[]; |
| 28 | extern const uint8_t* padding_map[]; |
| 29 | extern const int padding_size_map[]; |
Gaurav Shah | 8bf29d8 | 2010-01-28 19:43:24 -0800 | [diff] [blame] | 30 | extern const int hash_size_map[]; |
Gaurav Shah | 322536d | 2010-01-28 15:01:23 -0800 | [diff] [blame] | 31 | extern const int hash_blocksize_map[]; |
Gaurav Shah | 8bf29d8 | 2010-01-28 19:43:24 -0800 | [diff] [blame] | 32 | extern const uint8_t* hash_digestinfo_map[]; |
Gaurav Shah | 322536d | 2010-01-28 15:01:23 -0800 | [diff] [blame] | 33 | extern const char* algo_strings[]; |
| 34 | |
| 35 | #endif /* VBOOT_REFERENCE_PADDING_H_ */ |