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

Side by Side Diff: vboot_firmware/lib/cryptolib/include/rsa.h

Issue 2833012: Move all system includes in vboot_firmware to sysincludes.h (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Oops, forgot the new header Created 10 years, 6 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
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 #ifndef VBOOT_REFERENCE_RSA_H_ 6 #ifndef VBOOT_REFERENCE_RSA_H_
7 #define VBOOT_REFERENCE_RSA_H_ 7 #define VBOOT_REFERENCE_RSA_H_
8 8
9 #ifndef VBOOT_REFERENCE_CRYPTOLIB_H_ 9 #ifndef VBOOT_REFERENCE_CRYPTOLIB_H_
10 #error "Do not include this file directly. Use cryptolib.h instead." 10 #error "Do not include this file directly. Use cryptolib.h instead."
11 #endif 11 #endif
12 12
13 #include <stdint.h> 13 #include "sysincludes.h"
14 14
15 #define RSA1024NUMBYTES 128 /* 1024 bit key length */ 15 #define RSA1024NUMBYTES 128 /* 1024 bit key length */
16 #define RSA2048NUMBYTES 256 /* 2048 bit key length */ 16 #define RSA2048NUMBYTES 256 /* 2048 bit key length */
17 #define RSA4096NUMBYTES 512 /* 4096 bit key length */ 17 #define RSA4096NUMBYTES 512 /* 4096 bit key length */
18 #define RSA8192NUMBYTES 1024 /* 8192 bit key length */ 18 #define RSA8192NUMBYTES 1024 /* 8192 bit key length */
19 19
20 #define RSA1024NUMWORDS (RSA1024NUMBYTES / sizeof(uint32_t)) 20 #define RSA1024NUMWORDS (RSA1024NUMBYTES / sizeof(uint32_t))
21 #define RSA2048NUMWORDS (RSA2048NUMBYTES / sizeof(uint32_t)) 21 #define RSA2048NUMWORDS (RSA2048NUMBYTES / sizeof(uint32_t))
22 #define RSA4096NUMWORDS (RSA4096NUMBYTES / sizeof(uint32_t)) 22 #define RSA4096NUMWORDS (RSA4096NUMBYTES / sizeof(uint32_t))
23 #define RSA8192NUMWORDS (RSA8192NUMBYTES / sizeof(uint32_t)) 23 #define RSA8192NUMWORDS (RSA8192NUMBYTES / sizeof(uint32_t))
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 /* Create a RSAPublic key structure from binary blob [buf] of length 84 /* Create a RSAPublic key structure from binary blob [buf] of length
85 * [len]. 85 * [len].
86 * 86 *
87 * Caller owns the returned key and must free it. 87 * Caller owns the returned key and must free it.
88 */ 88 */
89 RSAPublicKey* RSAPublicKeyFromBuf(const uint8_t* buf, int len); 89 RSAPublicKey* RSAPublicKeyFromBuf(const uint8_t* buf, int len);
90 90
91 91
92 #endif /* VBOOT_REFERENCE_RSA_H_ */ 92 #endif /* VBOOT_REFERENCE_RSA_H_ */
OLDNEW
« no previous file with comments | « vboot_firmware/lib/cryptolib/include/padding.h ('k') | vboot_firmware/lib/cryptolib/include/sha.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698