changed RNG_REAL to RNG_TRUE
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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",
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user