1gnutls_pkcs8_info(3)                gnutls                gnutls_pkcs8_info(3)
2
3
4

NAME

6       gnutls_pkcs8_info - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int       gnutls_pkcs8_info(const      gnutls_datum_t      *      data,
12       gnutls_x509_crt_fmt_t format, unsigned int * schema, unsigned int * ci‐
13       pher, void * salt, unsigned int * salt_size, unsigned int * iter_count,
14       char ** oid);
15

ARGUMENTS

17       const gnutls_datum_t * data
18                   Holds the PKCS 8 data
19
20       gnutls_x509_crt_fmt_t format
21                   the format of the PKCS 8 data
22
23       unsigned int * schema
24                   indicate the schema as one of gnutls_pkcs_encrypt_flags_t
25
26       unsigned int * cipher
27                   the cipher used as gnutls_cipher_algorithm_t
28
29       void * salt PBKDF2 salt (if non-NULL then   salt_size  initially  holds
30                   its size)
31
32       unsigned int * salt_size
33                   PBKDF2 salt size
34
35       unsigned int * iter_count
36                   PBKDF2 iteration count
37
38       char ** oid if  non-NULL  it  will contain an allocated null-terminated
39                   variable with the OID
40

DESCRIPTION

42       This function will provide information on the algorithms used in a par‐
43       ticular  PKCS  8 structure. If the structure algorithms are unknown the
44       code GNUTLS_E_UNKNOWN_CIPHER_TYPE will be returned,  and  only   oid  ,
45       will  be  set. That is,  oid will be set on encrypted PKCS 8 structures
46       whether supported or not. It must be deinitialized using gnutls_free().
47       The other variables are only set on supported structures.
48

RETURNS

50       GNUTLS_E_INVALID_REQUEST  if  the provided structure isn't an encrypted
51       key, GNUTLS_E_UNKNOWN_CIPHER_TYPE if the structure's  encryption  isn't
52       supported, or another negative error code in case of a failure. Zero on
53       success.
54

SINCE

56       3.4.0
57

REPORTING BUGS

59       Report bugs to <bugs@gnutls.org>.
60       Home page: https://www.gnutls.org
61
62
64       Copyright © 2001-2023 Free Software Foundation, Inc., and others.
65       Copying and distribution of this file, with  or  without  modification,
66       are  permitted in any medium without royalty provided the copyright no‐
67       tice and this notice are preserved.
68

SEE ALSO

70       The full documentation for gnutls is maintained as  a  Texinfo  manual.
71       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
72       visit
73
74       https://www.gnutls.org/manual/
75
76gnutls                               3.8.2                gnutls_pkcs8_info(3)
Impressum