1gnutls_pkcs11_copy_secret_key(3)    gnutls    gnutls_pkcs11_copy_secret_key(3)
2
3
4

NAME

6       gnutls_pkcs11_copy_secret_key - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int     gnutls_pkcs11_copy_secret_key(const     char    *    token_url,
12       gnutls_datum_t * key, const  char  *  label,  unsigned  int  key_usage,
13       unsigned int flags);
14

ARGUMENTS

16       const char * token_url
17                   A PKCS 11 URL specifying a token
18
19       gnutls_datum_t * key
20                   The raw key
21
22       const char * label
23                   A name to be used for the stored data
24
25       unsigned int key_usage
26                   One of GNUTLS_KEY_*
27
28       unsigned int flags
29                   One of GNUTLS_PKCS11_OBJ_FLAG_*
30

DESCRIPTION

32       This  function  will  copy  a raw secret (symmetric) key into a PKCS 11
33       token specified by a URL. The key can be marked as sensitive or not.
34

RETURNS

36       On success, GNUTLS_E_SUCCESS is returned, otherwise  a  negative  error
37       value.
38

REPORTING BUGS

40       Report    bugs    to    <bug-gnutls@gnu.org>.     GnuTLS   home   page:
41       http://www.gnu.org/software/gnutls/ General help  using  GNU  software:
42       http://www.gnu.org/gethelp/
43
45       Copyright © 2008 Free Software Foundation.
46       Copying  and  distribution  of this file, with or without modification,
47       are permitted in any medium  without  royalty  provided  the  copyright
48       notice and this notice are preserved.
49

SEE ALSO

51       The  full  documentation  for gnutls is maintained as a Texinfo manual.
52       If the info and gnutls programs are properly installed  at  your  site,
53       the command
54
55              info gnutls
56
57       should give you access to the complete manual.
58
59
60
61gnutls                             2.12.6.1   gnutls_pkcs11_copy_secret_key(3)
Impressum