]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
doc update
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 28 Oct 2014 09:40:53 +0000 (10:40 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 28 Oct 2014 09:40:53 +0000 (10:40 +0100)
lib/nettle/rnd.c

index 99ae9da58e7e4af19d1a4c331d3839986c1e6318..ed63afdf2d2d1d53e1dfac44ca7b37f5c0c4a0c7 100644 (file)
@@ -153,6 +153,11 @@ static void wrap_nettle_rnd_deinit(void *ctx)
        rnd_ctx.mutex = NULL;
 }
 
+/* Initializes the nonce level random generator.
+ *
+ * @init must be non zero on first initialization, and
+ * zero on any subsequent reinitializations.
+ */
 static int nonce_rng_init(struct nonce_ctx_st *ctx, unsigned init)
 {
        uint8_t buffer[SALSA20_KEY_SIZE];