mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-31 19:21:18 +00:00
Made ctr_drbg_init_entropy_len() non-static and defined
This commit is contained in:
parent
3c5ef71322
commit
534f82c77a
@ -224,6 +224,9 @@ int ctr_drbg_update_seed_file( ctr_drbg_context *ctx, const char *path );
|
|||||||
*/
|
*/
|
||||||
int ctr_drbg_self_test( int verbose );
|
int ctr_drbg_self_test( int verbose );
|
||||||
|
|
||||||
|
/* Internal functions (do not call directly) */
|
||||||
|
int ctr_drbg_init_entropy_len( ctr_drbg_context *, int (*)(void *, unsigned char *, size_t), void *, const unsigned char *, size_t, size_t );
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
* Non-public function wrapped by ctr_crbg_init(). Necessary to allow NIST
|
* Non-public function wrapped by ctr_crbg_init(). Necessary to allow NIST
|
||||||
* tests to succeed (which require known length fixed entropy)
|
* tests to succeed (which require known length fixed entropy)
|
||||||
*/
|
*/
|
||||||
static int ctr_drbg_init_entropy_len(
|
int ctr_drbg_init_entropy_len(
|
||||||
ctr_drbg_context *ctx,
|
ctr_drbg_context *ctx,
|
||||||
int (*f_entropy)(void *, unsigned char *, size_t),
|
int (*f_entropy)(void *, unsigned char *, size_t),
|
||||||
void *p_entropy,
|
void *p_entropy,
|
||||||
|
@ -9,14 +9,6 @@ int entropy_func( void *data, unsigned char *buf, size_t len )
|
|||||||
test_offset += 32;
|
test_offset += 32;
|
||||||
return( 0 );
|
return( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
int ctr_drbg_init_entropy_len(
|
|
||||||
ctr_drbg_context *ctx,
|
|
||||||
int (*f_entropy)(void *, unsigned char *, size_t),
|
|
||||||
void *p_entropy,
|
|
||||||
const unsigned char *custom,
|
|
||||||
size_t len,
|
|
||||||
size_t entropy_len );
|
|
||||||
END_HEADER
|
END_HEADER
|
||||||
|
|
||||||
BEGIN_DEPENDENCIES
|
BEGIN_DEPENDENCIES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user