Add entropy_self_test()

This commit is contained in:
Manuel Pégourié-Gonnard 2014-05-30 10:34:15 +02:00
parent 7b4919c399
commit 4dd73925ab
3 changed files with 108 additions and 0 deletions

View file

@ -230,6 +230,15 @@ int entropy_write_seed_file( entropy_context *ctx, const char *path );
int entropy_update_seed_file( entropy_context *ctx, const char *path );
#endif /* POLARSSL_FS_IO */
#if defined(POLARSSL_SELF_TEST)
/**
* \brief Checkup routine
*
* \return 0 if successful, or 1 if a test failed
*/
int entropy_self_test( int verbose );
#endif /* POLARSSL_SELF_TEST */
#ifdef __cplusplus
}
#endif