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

Unified Diff: src/platform/vboot_reference/crypto/rsa.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/padding.c ('k') | src/platform/vboot_reference/crypto/rsa_utility.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/vboot_reference/crypto/rsa.c
diff --git a/src/platform/vboot_reference/crypto/rsa.c b/src/platform/vboot_reference/crypto/rsa.c
index 372b73d2b0717c4e27196b9b5f1069e7f94c0860..d23be89c9b5d60c3cce7ab2dbd663fa6e831c124 100644
--- a/src/platform/vboot_reference/crypto/rsa.c
+++ b/src/platform/vboot_reference/crypto/rsa.c
@@ -147,7 +147,7 @@ int RSA_verify(const RSAPublicKey *key,
return 0;
}
- if (key->len != siglen_map[sig_type]) {
+ if (key->len != siglen_map[sig_type] / sizeof(uint32_t)) {
fprintf(stderr, "Wrong key passed in!\n");
return 0;
}
« no previous file with comments | « src/platform/vboot_reference/crypto/padding.c ('k') | src/platform/vboot_reference/crypto/rsa_utility.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698