]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
_x509_en/decode_provable_seed: clarified purpose of functions [ci skip]
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 20 Mar 2019 10:40:15 +0000 (11:40 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 20 Mar 2019 10:40:38 +0000 (11:40 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/x509/prov-seed.c

index 96aaa977aa2b44ddeae1f419e8b07692e5fcd1e6..5ce17a7dfadb6ca8e535b42940414908b4a59614 100644 (file)
@@ -30,6 +30,9 @@
 #include <mpi.h>
 #include "prov-seed.h"
 
+/* This function encodes a seed value and a hash algorithm OID to the format
+ * described in RFC8479. The output is the DER encoded form.
+ */
 int _x509_encode_provable_seed(gnutls_x509_privkey_t pkey, gnutls_datum_t *der)
 {
 
@@ -76,6 +79,9 @@ int _x509_encode_provable_seed(gnutls_x509_privkey_t pkey, gnutls_datum_t *der)
        return ret;
 }
 
+/* This function decodes a DER encoded form of seed and a hash algorithm, as in
+ * RFC8479.
+ */
 int _x509_decode_provable_seed(gnutls_x509_privkey_t pkey, const gnutls_datum_t *der)
 {