]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
in gnutls_x509_privkey_generate() allow specifying an explicit curve.
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Fri, 8 Nov 2013 10:09:41 +0000 (11:09 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Wed, 27 Nov 2013 10:41:04 +0000 (11:41 +0100)
lib/gnutls_privkey.c

index 4b95330795d8f9e99e778ffc36b5b7080963814d..48afb06604561bc0bd865b837fc1713e334fa368 100644 (file)
@@ -554,6 +554,10 @@ gnutls_privkey_import_x509(gnutls_privkey_t pkey,
  * This function will generate a random private key. Note that this
  * function must be called on an empty private key.
  *
+ * Note that when generating an elliptic curve key, the curve
+ * can be substituted in the place of the bits parameter using the
+ * GNUTLS_CURVE_TO_BITS() macro.
+ *
  * Do not set the number of bits directly, use gnutls_sec_param_to_pk_bits().
  *
  * Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a