projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
handle entropy estimate correctly
[oweals/openssl.git]
/
crypto
/
rand
/
rand.h
diff --git
a/crypto/rand/rand.h
b/crypto/rand/rand.h
index 35a3bb6e10101d40f6b5dfaeaa1861686507dcc5..28f45ec05269965e4a9b37819b16787016932a7d 100644
(file)
--- a/
crypto/rand/rand.h
+++ b/
crypto/rand/rand.h
@@
-68,7
+68,8
@@
typedef struct rand_meth_st
void (*seed)(const void *buf, int num);
int (*bytes)(unsigned char *buf, int num);
void (*cleanup)(void);
void (*seed)(const void *buf, int num);
int (*bytes)(unsigned char *buf, int num);
void (*cleanup)(void);
- void (*add)(const void *buf, int num, int entropy);
+ void (*add)(const void *buf, int num, double entropy);
+ int (*pseudorand)(unsigned char *buf, int num);
} RAND_METHOD;
void RAND_set_rand_method(RAND_METHOD *meth);
} RAND_METHOD;
void RAND_set_rand_method(RAND_METHOD *meth);
@@
-76,11
+77,14
@@
RAND_METHOD *RAND_get_rand_method(void );
RAND_METHOD *RAND_SSLeay(void);
void RAND_cleanup(void );
int RAND_bytes(unsigned char *buf,int num);
RAND_METHOD *RAND_SSLeay(void);
void RAND_cleanup(void );
int RAND_bytes(unsigned char *buf,int num);
+int RAND_pseudo_bytes(unsigned char *buf,int num);
void RAND_seed(const void *buf,int num);
void RAND_seed(const void *buf,int num);
-void RAND_add(const void *buf,int num,
int
entropy);
+void RAND_add(const void *buf,int num,
double
entropy);
int RAND_load_file(const char *file,long max_bytes);
int RAND_write_file(const char *file);
int RAND_load_file(const char *file,long max_bytes);
int RAND_write_file(const char *file);
-char *RAND_file_name(char *file,int num);
+const char *RAND_file_name(char *file,int num);
+int RAND_status(void);
+int RAND_egd(const char *path);
#ifdef WINDOWS
void RAND_screen(void);
#endif
#ifdef WINDOWS
void RAND_screen(void);
#endif