Made ctr_drbg_init_entropy_len() non-static and defined

This commit is contained in:
Paul Bakker 2013-06-25 16:47:55 +02:00
parent 3c5ef71322
commit 534f82c77a
3 changed files with 4 additions and 9 deletions

View file

@ -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

View file

@ -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,

View file

@ -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