Fix more comments/outputs in verify programs
This commit is contained in:
parent
102a620c9a
commit
ce7a08ba49
3 changed files with 9 additions and 9 deletions
|
@ -103,8 +103,8 @@ int main( int argc, char *argv[] )
|
||||||
fclose( f );
|
fclose( f );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute the SHA-256 hash of the input file and compare
|
* Compute the SHA-256 hash of the input file and
|
||||||
* it with the hash decrypted from the signature.
|
* verify the signature
|
||||||
*/
|
*/
|
||||||
mbedtls_printf( "\n . Verifying the SHA-256 signature" );
|
mbedtls_printf( "\n . Verifying the SHA-256 signature" );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
|
@ -124,7 +124,7 @@ int main( int argc, char *argv[] )
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
mbedtls_printf( "\n . OK (the decrypted SHA-256 hash matches)\n\n" );
|
mbedtls_printf( "\n . OK (the signature is valid)\n\n" );
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
|
|
|
@ -123,8 +123,8 @@ int main( int argc, char *argv[] )
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute the SHA-256 hash of the input file and compare
|
* Compute the SHA-256 hash of the input file and
|
||||||
* it with the hash decrypted from the RSA signature.
|
* verify the signature
|
||||||
*/
|
*/
|
||||||
mbedtls_printf( "\n . Verifying the RSA/SHA-256 signature" );
|
mbedtls_printf( "\n . Verifying the RSA/SHA-256 signature" );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
|
@ -144,7 +144,7 @@ int main( int argc, char *argv[] )
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
mbedtls_printf( "\n . OK (the decrypted SHA-256 hash matches)\n\n" );
|
mbedtls_printf( "\n . OK (the signature is valid)\n\n" );
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
|
|
|
@ -117,8 +117,8 @@ int main( int argc, char *argv[] )
|
||||||
fclose( f );
|
fclose( f );
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compute the SHA-256 hash of the input file and compare
|
* Compute the SHA-256 hash of the input file and
|
||||||
* it with the hash decrypted from the RSA signature.
|
* verify the signature
|
||||||
*/
|
*/
|
||||||
mbedtls_printf( "\n . Verifying the RSA/SHA-256 signature" );
|
mbedtls_printf( "\n . Verifying the RSA/SHA-256 signature" );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
|
@ -138,7 +138,7 @@ int main( int argc, char *argv[] )
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
mbedtls_printf( "\n . OK (the decrypted SHA-256 hash matches)\n\n" );
|
mbedtls_printf( "\n . OK (the signature is valid)\n\n" );
|
||||||
|
|
||||||
ret = 0;
|
ret = 0;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue