Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   gnutls_key_generate    ( 3 )

Функции API (API function)

Имя (Name)

gnutls_key_generate - API function

Синопсис (Synopsis)

#include <gnutls/gnutls.h>

int gnutls_key_generate(gnutls_datum_t * key, unsigned int key_size);


Аргументы (Arguments)

gnutls_datum_t * key
                   is a pointer to a gnutls_datum_t which will contain a
                   newly created key

unsigned int key_size the number of bytes of the key


Описание (Description)

Generates a random key of  key_size bytes.

Возвращаемое значение (Return value)

On success, GNUTLS_E_SUCCESS (0) is returned, or an error code.

Сообщение об ошибках (Reporting bugs)

Report bugs to <bugs@gnutls.org>.
       Home page: https://www.gnutls.org

Смотри также (See also)

The full documentation for gnutls is maintained as a Texinfo
       manual.  If the /usr/share/doc/gnutls/ directory does not contain
       the HTML form visit

https://www.gnutls.org/manual/