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

Unified Diff: src/platform/vboot_reference/include/padding.h

Issue 1574005: VBoot Reference: Refactor Part 2 - Crypto Libraries (Closed)
Patch Set: . Created 10 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/vboot_reference/include/kernel_image_fw.h ('k') | src/platform/vboot_reference/include/rsa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/include/padding.h
diff --git a/src/platform/vboot_reference/include/padding.h b/src/platform/vboot_reference/include/padding.h
index 938cec2fa9d1bf464a5aba80df719e601ee3230b..8d8fc95f7a1b8fceeb88e2a870130c2e1d50e2b6 100644
--- a/src/platform/vboot_reference/include/padding.h
+++ b/src/platform/vboot_reference/include/padding.h
@@ -6,7 +6,11 @@
#ifndef VBOOT_REFERENCE_PADDING_H_
#define VBOOT_REFERENCE_PADDING_H_
-#include <inttypes.h>
+#ifndef VBOOT_REFERENCE_CRYPTOLIB_H_
+#error "Do not include this file directly. Use cryptolib.h instead."
+#endif
+
+#include <stdint.h>
extern const uint8_t paddingRSA1024_SHA1[];
extern const uint8_t paddingRSA1024_SHA256[];
@@ -27,6 +31,7 @@ extern const int digestinfo_size_map[];
extern const int siglen_map[];
extern const uint8_t* padding_map[];
extern const int padding_size_map[];
+extern const int hash_type_map[];
extern const int hash_size_map[];
extern const int hash_blocksize_map[];
extern const uint8_t* hash_digestinfo_map[];
« no previous file with comments | « src/platform/vboot_reference/include/kernel_image_fw.h ('k') | src/platform/vboot_reference/include/rsa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698