1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

Merge tests for asn1write, XTEA and Entropy modules

This commit is contained in:
Paul Bakker
2014-06-12 21:26:33 +02:00
12 changed files with 567 additions and 3 deletions

View File

@ -183,7 +183,7 @@ int entropy_gather( entropy_context *ctx );
*
* \param data Entropy context
* \param output Buffer to fill
* \param len Length of buffer
* \param len Number of bytes desired, must be at most ENTROPY_BLOCK_SIZE
*
* \return 0 if successful, or POLARSSL_ERR_ENTROPY_SOURCE_FAILED
*/
@ -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