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

Unified Diff: src/platform/vboot_reference/tests/rsa_padding_test.c

Issue 661353: Vboot Reference: Refactor Code. (Closed)
Patch Set: Review Fixes. 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_padding_test.c
diff --git a/src/platform/vboot_reference/tests/rsa_padding_test.c b/src/platform/vboot_reference/tests/rsa_padding_test.c
index 7706ba8a185773927133cb0a6e745de22cbdd45a..429210bdc326a90e8e27fc2daa447df89b1b332f 100644
--- a/src/platform/vboot_reference/tests/rsa_padding_test.c
+++ b/src/platform/vboot_reference/tests/rsa_padding_test.c
@@ -25,14 +25,14 @@ int main(int argc, char* argv[]) {
}
/* The first test signature is valid. */
- if (!RSA_verify(key, signatures[0], RSA1024NUMBYTES, 0,
+ if (!RSAVerify(key, signatures[0], RSA1024NUMBYTES, 0,
test_message_sha1_hash)) {
fprintf(stderr, "RSA Padding Test vector 0 FAILED!\n");
error = 255; /* Test failure. */
}
/* All other signatures should fail verification. */
for (i = 1; i < sizeof(signatures) / sizeof(signatures[0]); i++) {
- if (RSA_verify(key, signatures[i], RSA1024NUMBYTES, 0,
+ if (RSAVerify(key, signatures[i], RSA1024NUMBYTES, 0,
test_message_sha1_hash)) {
fprintf(stderr, "RSA Padding Test vector %d FAILED!\n", i);
error = 255; /* Test failure. */
« no previous file with comments | « src/platform/vboot_reference/tests/kernel_image_tests.c ('k') | src/platform/vboot_reference/tests/rsa_verify_benchmark.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698