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().
37

RETURNS

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

REPORTING BUGS

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

SEE ALSO

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