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

1 parent 8da77fb6
Showing with 3 additions and 2 deletions
......@@ -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)
gnutls_assert();
goto error;
}
/* this does not require rng initialization */
ret = _gnutls_rnd_ops.self_test();
if (ret < 0) {
gnutls_assert();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!