From f5564fa98c7e37b6644b92993894ebbe56306f4c Mon Sep 17 00:00:00 2001 From: Gaurav Shah Date: Tue, 2 Mar 2010 15:40:01 -0800 Subject: 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 --- tests/rsa_verify_benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/rsa_verify_benchmark.c') 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); -- cgit v1.2.1