summaryrefslogtreecommitdiff
path: root/tests/rsa_verify_benchmark.c
diff options
context:
space:
mode:
authorGaurav Shah <gauravsh@google.com>2010-03-02 15:40:01 -0800
committerGaurav Shah <gauravsh@google.com>2010-03-02 15:40:01 -0800
commitf5564fa98c7e37b6644b92993894ebbe56306f4c (patch)
tree99a25c6d963324494c99fd55ffe9b7edac489c24 /tests/rsa_verify_benchmark.c
parent444e1e19f21fb640443ed44504bac06c13685fd4 (diff)
downloadvboot-f5564fa98c7e37b6644b92993894ebbe56306f4c.tar.gz
Vboot Reference: Refactor Code.
This CL does the following: 1) It adds a SignatureBuf function which uses the OpenSSL library to generate RSA signature. This is more robust than the previous way of invoking the command line "openssl" utility and capturing its output. No more unnecessary temporary files for signature operations. 2) It adds functions that allow direct manipulation of binary verified Firmware and Kernel Image blobs in memory. 3) It changes the structure field members for FirmwareImage to make it consistent with KernelImage. Now it's clearer which key is used when. 4) Minor bug fixes and slightly improved API for dealing verified boot firmware and kernel images. 5) Renames the RSA_verify function to prevent conflicts with OpenSSL since it's linked into the firmware utility binary. Review URL: http://codereview.chromium.org/661353
Diffstat (limited to 'tests/rsa_verify_benchmark.c')
-rw-r--r--tests/rsa_verify_benchmark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rsa_verify_benchmark.c b/tests/rsa_verify_benchmark.c
index e72c36fd..770afa6d 100644
--- a/tests/rsa_verify_benchmark.c
+++ b/tests/rsa_verify_benchmark.c
@@ -64,7 +64,7 @@ int SpeedTestAlgorithm(int algorithm) {
StartTimer(&ct);
for (i = 0; i < NUM_OPERATIONS; i++) {
- if (!RSA_verify(key, signature, sig_len, algorithm, digest))
+ if (!RSAVerify(key, signature, sig_len, algorithm, digest))
fprintf(stderr, "Warning: Signature Check Failed.\n");
}
StopTimer(&ct);