mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 09:25:38 +00:00
Renames null entropy source function for clarity
This commit is contained in:
parent
ab5df40054
commit
4157b6004d
|
@ -47,7 +47,7 @@ extern "C" {
|
||||||
* \brief Entropy poll callback that provides 0 entropy.
|
* \brief Entropy poll callback that provides 0 entropy.
|
||||||
*/
|
*/
|
||||||
#if defined(MBEDTLS_TEST_NULL_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 );
|
unsigned char *output, size_t len, size_t *olen );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ void mbedtls_entropy_init( mbedtls_entropy_context *ctx )
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MBEDTLS_TEST_NULL_ENTROPY)
|
#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 );
|
1, MBEDTLS_ENTROPY_SOURCE_STRONG );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -192,7 +192,7 @@ int mbedtls_platform_entropy_poll( void *data,
|
||||||
#endif /* !MBEDTLS_NO_PLATFORM_ENTROPY */
|
#endif /* !MBEDTLS_NO_PLATFORM_ENTROPY */
|
||||||
|
|
||||||
#if defined(MBEDTLS_TEST_NULL_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 )
|
unsigned char *output, size_t len, size_t *olen )
|
||||||
{
|
{
|
||||||
((void) data);
|
((void) data);
|
||||||
|
|
Loading…
Reference in a new issue