Next: , Up: Random Numbers   [Contents][Index]

10.1 Quality of random numbers

Libgcypt offers random numbers of different quality levels:

Data type: gcry_random_level_t

The constants for the random quality levels are of this enum type.


For all functions, except for gcry_mpi_randomize, this level maps to GCRY_STRONG_RANDOM. If you do not want this, consider using gcry_create_nonce.


Use this level for session keys and similar purposes.


Use this level for long term key material.