X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fsec%2Frandom.h;h=3ccc17b722a89605cf2f9d5f59ee985a50148766;hb=01d0d2312f50170e2208bbee3bc4f7052ca6f4a4;hp=04f570bb1de93517507ea52b4d289bf096cf4351;hpb=456922ffd80d6dc65b7810f9fca98e56bc8f7d05;p=bertos.git diff --git a/bertos/sec/random.h b/bertos/sec/random.h index 04f570bb..3ccc17b7 100644 --- a/bertos/sec/random.h +++ b/bertos/sec/random.h @@ -33,18 +33,22 @@ * \brief High-level random number generation functions. * \author Giovanni Bajo * + * $WIZ$ module_name = "random" + * $WIZ$ module_configuration = "bertos/cfg/cfg_random.h" + * $WIZ$ module_depends = "isaac", "cipher", "sha1", "yarrow", "yarrow_pool", "x917", "aes" + * $WIZ$ module_supports = "stm32 or lm3s" */ #ifndef SEC_RANDOM_H #define SEC_RANDOM_H +#include "cfg/cfg_random.h" #include -#define RANDOM_SECURITY_MINIMUM 0 -#define RANDOM_SECURITY_MEDIUM 1 -#define RANDOM_SECURITY_STRONG 2 - /** + * \name Security level definition + * + * * Configure the security level required by the application. * * Application developers are suggested to keep the strongest @@ -74,9 +78,14 @@ * random numbers. Even if the generator is still secure on * paper, its seeding will not be safe (though still entropic * to allow different sequences to be generated after each reset). + * + * $WIZ$ random_level = "RANDOM_SECURITY_MINIMUM", "RANDOM_SECURITY_MEDIUM", "RANDOM_SECURITY_STRONG" + * \{ */ -#define RANDOM_SECURITY_LEVEL RANDOM_SECURITY_STRONG - +#define RANDOM_SECURITY_MINIMUM 0 +#define RANDOM_SECURITY_MEDIUM 1 +#define RANDOM_SECURITY_STRONG 2 +/** \} */ void random_init(void);