mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 07:28:08 +00:00
Renames null entropy source function for clarity
This commit is contained in:
parent
ab5df40054
commit
4157b6004d
3 changed files with 3 additions and 3 deletions
|
@ -47,7 +47,7 @@ extern "C" {
|
|||
* \brief Entropy poll callback that provides 0 entropy.
|
||||
*/
|
||||
#if defined(MBEDTLS_TEST_NULL_ENTROPY)
|
||||
int mbedtls_zero_entropy_poll( void *data,
|
||||
int mbedtls_null_entropy_poll( void *data,
|
||||
unsigned char *output, size_t len, size_t *olen );
|
||||
#endif
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ void mbedtls_entropy_init( mbedtls_entropy_context *ctx )
|
|||
#endif
|
||||
|
||||
#if defined(MBEDTLS_TEST_NULL_ENTROPY)
|
||||
mbedtls_entropy_add_source( ctx, mbedtls_zero_entropy_poll, NULL,
|
||||
mbedtls_entropy_add_source( ctx, mbedtls_null_entropy_poll, NULL,
|
||||
1, MBEDTLS_ENTROPY_SOURCE_STRONG );
|
||||
#endif
|
||||
|
||||
|
|
|
@ -192,7 +192,7 @@ int mbedtls_platform_entropy_poll( void *data,
|
|||
#endif /* !MBEDTLS_NO_PLATFORM_ENTROPY */
|
||||
|
||||
#if defined(MBEDTLS_TEST_NULL_ENTROPY)
|
||||
int mbedtls_zero_entropy_poll( void *data,
|
||||
int mbedtls_null_entropy_poll( void *data,
|
||||
unsigned char *output, size_t len, size_t *olen )
|
||||
{
|
||||
((void) data);
|
||||
|
|
Loading…
Reference in a new issue