doc: explicitly state that rng self_test mustn't require rng initialization

parent 8da77fb6
......@@ -77,7 +77,7 @@ typedef struct gnutls_crypto_rnd {
int (*rnd) (void *ctx, int level, void *data, size_t datasize);
void (*rnd_refresh) (void *ctx);
void (*deinit) (void *ctx);
int (*self_test) (void);
int (*self_test) (void); /* this should not require rng initialization */
} gnutls_crypto_rnd_st;
typedef void *bigint_t;
......@@ -350,7 +350,8 @@ int _gnutls_fips_perform_self_checks2(void)
goto error;
/* this does not require rng initialization */
ret = _gnutls_rnd_ops.self_test();
if (ret < 0) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment