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

Unified Diff: src/platform/vboot_reference/crypto/padding.c

Issue 660261: Refactor siglen_map[] to store key size in bytes instead of 32-bit words. (Closed)
Patch Set: Created 10 years, 10 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/crypto/genpadding.sh ('k') | src/platform/vboot_reference/crypto/rsa.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/crypto/padding.c
diff --git a/src/platform/vboot_reference/crypto/padding.c b/src/platform/vboot_reference/crypto/padding.c
index 2b2e98cbe8a3bdf9ef3976078cb1209063f3a307..5580d6efe94bf147106cc9259d625656a8f90e3d 100644
--- a/src/platform/vboot_reference/crypto/padding.c
+++ b/src/platform/vboot_reference/crypto/padding.c
@@ -126,18 +126,18 @@ SHA512_DIGESTINFO_LEN,
};
const int siglen_map[NUMALGORITHMS] = {
-RSA1024NUMWORDS,
-RSA1024NUMWORDS,
-RSA1024NUMWORDS,
-RSA2048NUMWORDS,
-RSA2048NUMWORDS,
-RSA2048NUMWORDS,
-RSA4096NUMWORDS,
-RSA4096NUMWORDS,
-RSA4096NUMWORDS,
-RSA8192NUMWORDS,
-RSA8192NUMWORDS,
-RSA8192NUMWORDS,
+RSA1024NUMBYTES,
+RSA1024NUMBYTES,
+RSA1024NUMBYTES,
+RSA2048NUMBYTES,
+RSA2048NUMBYTES,
+RSA2048NUMBYTES,
+RSA4096NUMBYTES,
+RSA4096NUMBYTES,
+RSA4096NUMBYTES,
+RSA8192NUMBYTES,
+RSA8192NUMBYTES,
+RSA8192NUMBYTES,
};
const uint8_t* padding_map[NUMALGORITHMS] = {
« no previous file with comments | « src/platform/vboot_reference/crypto/genpadding.sh ('k') | src/platform/vboot_reference/crypto/rsa.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698