diff --git a/src/tests/pubkey_test.c b/src/tests/pubkey_test.c index 15b24f005..b94ed90ff 100644 --- a/src/tests/pubkey_test.c +++ b/src/tests/pubkey_test.c @@ -146,6 +146,10 @@ void pubkey_sign_okx ( struct pubkey_sign_test *test, const char *file, okx ( asn1_compare ( asn1_built ( &builder ), &test->signature ) == 0, file, line ); + /* Test verification of constructed signature */ + okx ( pubkey_verify ( pubkey, &test->public, digest, digestout, + asn1_built ( &builder ) ) == 0, file, line ); + /* Free signature */ free ( builder.data ); }