diff options
author | Benjamin Kaduk <bkaduk@akamai.com> | 2017-07-19 17:32:08 -0500 |
---|---|---|
committer | Benjamin Kaduk <kaduk@mit.edu> | 2017-07-20 12:12:36 -0500 |
commit | 16960a9b17ebc39498d113cd6dd1f83784f018a4 (patch) | |
tree | 97d257e57934adb800eed81591bfb712215eac18 /crypto/rand/rand_lcl.h | |
parent | 4468b6ed59a7e2afc145b3d260dfa096cb7eb2eb (diff) |
typedef's for RAND_DRBG methods
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3971)
Diffstat (limited to 'crypto/rand/rand_lcl.h')
-rw-r--r-- | crypto/rand/rand_lcl.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/crypto/rand/rand_lcl.h b/crypto/rand/rand_lcl.h index 0c1aa72779..de1f2cd4e6 100644 --- a/crypto/rand/rand_lcl.h +++ b/crypto/rand/rand_lcl.h @@ -71,16 +71,13 @@ struct drbg_ctx_st { DRBG_CTR_CTX ctr; /* entropy gathering function */ - size_t (*get_entropy)(DRBG_CTX *ctx, unsigned char **pout, - int entropy, size_t min_len, size_t max_len); + RAND_DRBG_get_entropy_fn get_entropy; /* Indicates we have finished with entropy buffer */ - void (*cleanup_entropy)(DRBG_CTX *ctx, unsigned char *out, size_t olen); - + RAND_DRBG_cleanup_entropy_fn cleanup_entropy; /* nonce gathering function */ - size_t (*get_nonce)(DRBG_CTX *ctx, unsigned char **pout, - int entropy, size_t min_len, size_t max_len); + RAND_DRBG_get_nonce_fn get_nonce; /* Indicates we have finished with nonce buffer */ - void (*cleanup_nonce)(DRBG_CTX *ctx, unsigned char *out, size_t olen); + RAND_DRBG_cleanup_nonce_fn cleanup_nonce; }; |