mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-29 08:54:23 +01: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 );
|
||||
|
||||
/* 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
|
||||
}
|
||||
#endif
|
||||
|
@ -42,7 +42,7 @@
|
||||
* Non-public function wrapped by ctr_crbg_init(). Necessary to allow NIST
|
||||
* 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,
|
||||
int (*f_entropy)(void *, unsigned char *, size_t),
|
||||
void *p_entropy,
|
||||
|
@ -9,14 +9,6 @@ int entropy_func( void *data, unsigned char *buf, size_t len )
|
||||
test_offset += 32;
|
||||
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
|
||||
|
||||
BEGIN_DEPENDENCIES
|
||||
|
Loading…
Reference in New Issue
Block a user