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

Unified Diff: src/platform/vboot_reference/tests/rsa_verify_benchmark.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
Index: src/platform/vboot_reference/tests/rsa_verify_benchmark.c
diff --git a/src/platform/vboot_reference/tests/rsa_verify_benchmark.c b/src/platform/vboot_reference/tests/rsa_verify_benchmark.c
index 20b1de0d11fe64f2075ce1fe077635fa4cdd8092..29acf75c8a64136ea2947aedf9caddef79a488d9 100644
--- a/src/platform/vboot_reference/tests/rsa_verify_benchmark.c
+++ b/src/platform/vboot_reference/tests/rsa_verify_benchmark.c
@@ -32,7 +32,7 @@ int SpeedTestAlgorithm(int algorithm) {
"sha1", "sha256", "sha512", /* RSA-8192 */
};
- key_size = siglen_map[algorithm] * sizeof(uint32_t) * 8; /* in bits. */
+ key_size = siglen_map[algorithm] * 8; /* in bits. */
/* Get key. */
snprintf(file_name, FILE_NAME_SIZE, "testkeys/key_rsa%d.keyb", key_size);
key = RSAPublicKeyFromFile(file_name);
« no previous file with comments | « src/platform/vboot_reference/crypto/rsa_utility.c ('k') | src/platform/vboot_reference/tests/run_rsa_tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698