Skip to content

Commit cb12f2e

Browse files
committed
Clarify some test descriptions
Signed-off-by: Steffen Jaeckel <s@jaeckel.eu>
1 parent 6fe3919 commit cb12f2e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/dsa_test.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,20 +152,20 @@ static int s_dsa_compat_test(void)
152152
x = sizeof(tmp);
153153
DO(dsa_export(tmp, &x, PK_PRIVATE | PK_STD, &key));
154154
DO(do_compare_testvector(tmp, x, ltc_dsa_private_test_key, sizeof(ltc_dsa_private_test_key),
155-
"DSA private export failed from dsa_import(priv_key)\n", __LINE__));
155+
"DSA private export from dsa_import(priv_key)\n", __LINE__);
156156

157157
x = sizeof(tmp);
158158
DO(dsa_export(tmp, &x, PK_PUBLIC | PK_STD, &key));
159159
DO(do_compare_testvector(tmp, x, openssl_pub_dsa, sizeof(openssl_pub_dsa),
160-
"DSA public export failed from dsa_import(priv_key)\n", __LINE__));
160+
"DSA public export from dsa_import(priv_key)\n", __LINE__);
161161
dsa_free(&key);
162162

163163
DO(dsa_import(openssl_pub_dsa, sizeof(openssl_pub_dsa), &key));
164164

165165
x = sizeof(tmp);
166166
DO(dsa_export(tmp, &x, PK_PUBLIC | PK_STD, &key));
167167
DO(do_compare_testvector(tmp, x, openssl_pub_dsa, sizeof(openssl_pub_dsa),
168-
"DSA public export failed from dsa_import(pub_key)\n", __LINE__));
168+
"DSA public export from dsa_import(pub_key)\n", __LINE__);
169169
dsa_free(&key);
170170

171171
/* try import private key from raw hexadecimal numbers */
@@ -188,7 +188,7 @@ static int s_dsa_compat_test(void)
188188
len = sizeof(buf);
189189
DO(dsa_export(buf, &len, PK_PRIVATE | PK_STD, &key));
190190
DO(do_compare_testvector(buf, len, ltc_dsa_private_test_key, sizeof(ltc_dsa_private_test_key),
191-
"DSA private export failed from dsa_set_pqg() & dsa_set_key()\n", __LINE__));
191+
"DSA private export from dsa_set_pqg() & dsa_set_key()\n", __LINE__));
192192
dsa_free(&key);
193193

194194
/* try import public key from raw hexadecimal numbers */
@@ -202,7 +202,7 @@ static int s_dsa_compat_test(void)
202202
len = sizeof(buf);
203203
DO(dsa_export(buf, &len, PK_PUBLIC | PK_STD, &key));
204204
DO(do_compare_testvector(buf, len, openssl_pub_dsa, sizeof(openssl_pub_dsa),
205-
"DSA public export failed from dsa_set_pqg() & dsa_set_key()\n", __LINE__));
205+
"DSA public export from dsa_set_pqg() & dsa_set_key()\n", __LINE__));
206206
dsa_free(&key);
207207

208208
/* try import dsaparam */
@@ -224,7 +224,7 @@ static int s_dsa_compat_test(void)
224224
len = sizeof(buf);
225225
DO(dsa_export(buf, &len, PK_PUBLIC | PK_STD, &key));
226226
DO(do_compare_testvector(buf, len, openssl_pub_dsa, sizeof(openssl_pub_dsa),
227-
"DSA public export failed from dsa_set_pqg_dsaparam()\n", __LINE__));
227+
"DSA public export from dsa_set_pqg_dsaparam()\n", __LINE__));
228228
dsa_free(&key);
229229

230230
/* try import dsaparam - our private key */
@@ -235,7 +235,7 @@ static int s_dsa_compat_test(void)
235235
len = sizeof(buf);
236236
DO(dsa_export(buf, &len, PK_PRIVATE | PK_STD, &key));
237237
DO(do_compare_testvector(buf, len, ltc_dsa_private_test_key, sizeof(ltc_dsa_private_test_key),
238-
"DSA private export failed from dsa_set_pqg_dsaparam()\n", __LINE__));
238+
"DSA private export from dsa_set_pqg_dsaparam()\n", __LINE__));
239239
dsa_free(&key);
240240

241241
return CRYPT_OK;

tests/rsa_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ print_hex("q", tmp, len);
767767
DO(rsa_import_x509(tmp, len3, &key));
768768
len = sizeof(tmp);
769769
DO(rsa_export(tmp, &len, PK_PUBLIC, &key));
770-
DO(do_compare_testvector(tmp, len, openssl_public_rsa_stripped, sizeof(openssl_public_rsa_stripped), "RSA public export failed to match rsa_import_x509", 0));
770+
COMPARE_TESTVECTOR(tmp, len, openssl_public_rsa_stripped, sizeof(openssl_public_rsa_stripped), "RSA public export to match rsa_import_x509", 0);
771771
rsa_free(&key);
772772

773773
len3 = sizeof(tmp);

0 commit comments

Comments
 (0)