blob: 8d8fc95f7a1b8fceeb88e2a870130c2e1d50e2b6 [file] [log] [blame]
Gaurav Shah3a878522010-02-04 18:58:48 -08001/* 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 Shah322536d2010-01-28 15:01:23 -08006#ifndef VBOOT_REFERENCE_PADDING_H_
7#define VBOOT_REFERENCE_PADDING_H_
8
Gaurav Shah5411c7a2010-03-31 10:56:49 -07009#ifndef VBOOT_REFERENCE_CRYPTOLIB_H_
10#error "Do not include this file directly. Use cryptolib.h instead."
11#endif
12
13#include <stdint.h>
Gaurav Shah322536d2010-01-28 15:01:23 -080014
15extern const uint8_t paddingRSA1024_SHA1[];
16extern const uint8_t paddingRSA1024_SHA256[];
17extern const uint8_t paddingRSA1024_SHA512[];
18extern const uint8_t paddingRSA2048_SHA1[];
19extern const uint8_t paddingRSA2048_SHA256[];
20extern const uint8_t paddingRSA2048_SHA512[];
21extern const uint8_t paddingRSA4096_SHA1[];
22extern const uint8_t paddingRSA4096_SHA256[];
23extern const uint8_t paddingRSA4096_SHA512[];
24extern const uint8_t paddingRSA8192_SHA1[];
25extern const uint8_t paddingRSA8192_SHA256[];
26extern const uint8_t paddingRSA8192_SHA512[];
27
28extern const int kNumAlgorithms;
29
Gaurav Shah8bf29d82010-01-28 19:43:24 -080030extern const int digestinfo_size_map[];
Gaurav Shah322536d2010-01-28 15:01:23 -080031extern const int siglen_map[];
32extern const uint8_t* padding_map[];
33extern const int padding_size_map[];
Gaurav Shah5411c7a2010-03-31 10:56:49 -070034extern const int hash_type_map[];
Gaurav Shah8bf29d82010-01-28 19:43:24 -080035extern const int hash_size_map[];
Gaurav Shah322536d2010-01-28 15:01:23 -080036extern const int hash_blocksize_map[];
Gaurav Shah8bf29d82010-01-28 19:43:24 -080037extern const uint8_t* hash_digestinfo_map[];
Gaurav Shah322536d2010-01-28 15:01:23 -080038extern const char* algo_strings[];
39
40#endif /* VBOOT_REFERENCE_PADDING_H_ */