changed RNG_REAL to RNG_TRUE

This commit is contained in:
Andreas Steffen
2009-04-29 09:13:20 +00:00
parent de92b9e70c
commit f67eebccc8
9 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -772,7 +772,7 @@ bool build_envelopedData(private_pkcs7_t *this, x509_t *cert,
{
rng_t *rng;
rng = lib->crypto->create_rng(lib->crypto, RNG_REAL);
rng = lib->crypto->create_rng(lib->crypto, RNG_TRUE);
rng->allocate_bytes(rng, crypter->get_key_size(crypter), &symmetricKey);
DBG4(" symmetric encryption key: %B", &symmetricKey);
rng->destroy(rng);
+2 -2
View File
@@ -17,8 +17,8 @@
#include "rng.h"
ENUM(rng_quality_names, RNG_WEAK, RNG_REAL,
ENUM(rng_quality_names, RNG_WEAK, RNG_TRUE,
"RNG_WEAK",
"RNG_STRONG",
"RNG_REAL",
"RNG_TRUE",
);
+2 -2
View File
@@ -36,8 +36,8 @@ enum rng_quality_t {
RNG_WEAK,
/** stronger randomness, usable for session keys */
RNG_STRONG,
/** real random, key material */
RNG_REAL,
/** true random key material */
RNG_TRUE,
};
/**