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

Unified Diff: vboot_firmware/lib/cryptolib/rsa_utility.c

Issue 2745007: Major refactoring of structures, with unit tests. (Closed) Base URL: ssh://gitrw.chromium.org/vboot_reference.git
Patch Set: Implemented LoadFirmware2() 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 side-by-side diff with in-line comments
Download patch
Index: vboot_firmware/lib/cryptolib/rsa_utility.c
diff --git a/vboot_firmware/lib/cryptolib/rsa_utility.c b/vboot_firmware/lib/cryptolib/rsa_utility.c
index dadd79846d640e70855b45b171d1350fe8a512c6..2a823a45fdd83f403c3c75f3dd4b84ee6b44a103 100644
--- a/vboot_firmware/lib/cryptolib/rsa_utility.c
+++ b/vboot_firmware/lib/cryptolib/rsa_utility.c
@@ -15,7 +15,7 @@ int RSAProcessedKeySize(int algorithm) {
* 2 * key_len bytes for the n and rr arrays
* + sizeof len + sizeof n0inv.
*/
- return (2 * key_len + sizeof(int) + sizeof(uint32_t));
+ return (2 * key_len + sizeof(uint32_t) + sizeof(uint32_t));
}
RSAPublicKey* RSAPublicKeyNew(void) {

Powered by Google App Engine
This is Rietveld 408576698