1gnutls_random_art(3)                gnutls                gnutls_random_art(3)
2
3
4

NAME

6       gnutls_random_art - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_random_art(gnutls_random_art_t type, const char * key_type,
12       unsigned int key_size, void * fpr, size_t  fpr_size,  gnutls_datum_t  *
13       art);
14

ARGUMENTS

16       gnutls_random_art_t type
17                   The  type  of  the  random  art  (for  now only GNUTLS_RAN‐
18                   DOM_ART_OPENSSH is supported)
19
20       const char * key_type
21                   The type of the key (RSA, DSA etc.)
22
23       unsigned int key_size
24                   The size of the key in bits
25
26       void * fpr  The fingerprint of the key
27
28       size_t fpr_size
29                   The size of the fingerprint
30
31       gnutls_datum_t * art
32                   The returned random art
33

DESCRIPTION

35       This function will convert a given fingerprint to an "artistic"  image.
36       The  returned  image is allocated using gnutls_malloc(), is null-termi‐
37       nated but art->size will not account the terminating null.
38

RETURNS

40       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise an  error  code
41       is returned.
42

REPORTING BUGS

44       Report bugs to <bugs@gnutls.org>.
45       Home page: https://www.gnutls.org
46
47
49       Copyright © 2001- Free Software Foundation, Inc., and others.
50       Copying  and  distribution  of this file, with or without modification,
51       are permitted in any medium without royalty provided the copyright  no‐
52       tice and this notice are preserved.
53

SEE ALSO

55       The  full  documentation  for gnutls is maintained as a Texinfo manual.
56       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
57       visit
58
59       https://www.gnutls.org/manual/
60
61gnutls                               3.7.6                gnutls_random_art(3)
Impressum