Debian Codegraph @

doc/functions/gnutls_pkcs12_generate_mac3

raw
1
2
3
4
5 @deftypefun {int} {gnutls_pkcs12_generate_mac3} (gnutls_pkcs12_t @var{pkcs12}, gnutls_mac_algorithm_t @var{mac}, const char * @var{pass}, unsigned int @var{flags})
6 @var{pkcs12}: A pkcs12 type
7
8 @var{mac}: the MAC algorithm to use
9
10 @var{pass}: The password for the MAC
11
12 @var{flags}: an ORed sequence of gnutls_pkcs12_flags_t
13
14 This function will generate a MAC for the PKCS12 structure.
15
16 If @code{flags} contains @code{GNUTLS_PKCS12_USE_PBMAC1} , it uses PBMAC1 key
17 derivation function instead of the PKCS@code{12} one.
18
19 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
20 negative error value.
21 @end deftypefun