projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revise DRBG to split between internal and external flags.
[openssl.git]
/
fips
/
rand
/
fips_rand_lcl.h
diff --git
a/fips/rand/fips_rand_lcl.h
b/fips/rand/fips_rand_lcl.h
index 32809d41ac111343deac92b29245f5e248eed2a8..fc649c003b5235bdb46f84bf8461a597e3397c09 100644
(file)
--- a/
fips/rand/fips_rand_lcl.h
+++ b/
fips/rand/fips_rand_lcl.h
@@
-122,12
+122,12
@@
struct drbg_ec_ctx_st
BN_CTX *bctx;
};
BN_CTX *bctx;
};
-/* DRBG flags */
+/* DRBG
internal
flags */
/* Functions shouldn't call err library */
/* Functions shouldn't call err library */
-#define DRBG_FLAG_NOERR 0x
4
+#define DRBG_FLAG_NOERR 0x
1
/* Custom reseed checking */
/* Custom reseed checking */
-#define DRBG_CUSTOM_RESEED 0x
8
+#define DRBG_CUSTOM_RESEED 0x
2
/* DRBG status values */
/* not initialised */
/* DRBG status values */
/* not initialised */
@@
-156,8
+156,10
@@
struct drbg_ctx_st
/* First types common to all implementations */
/* DRBG type: a NID for the underlying algorithm */
int type;
/* First types common to all implementations */
/* DRBG type: a NID for the underlying algorithm */
int type;
- /* Various flags */
- unsigned int flags;
+ /* Various external flags */
+ unsigned int xflags;
+ /* Various internal use only flags */
+ unsigned int iflags;
/* Used for periodic health checks */
int health_check_cnt, health_check_interval;
/* Used for periodic health checks */
int health_check_cnt, health_check_interval;