File: gnutls_pkcs12_generate_mac3

package info (click to toggle)
gnutls28 3.8.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 81,572 kB
  • sloc: ansic: 390,000; asm: 117,804; sh: 18,712; makefile: 6,754; yacc: 1,858; python: 1,399; cpp: 1,243; perl: 995; sed: 16
file content (21 lines) | stat: -rw-r--r-- 646 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21




@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})
@var{pkcs12}: A pkcs12 type

@var{mac}: the MAC algorithm to use

@var{pass}: The password for the MAC

@var{flags}: an ORed sequence of gnutls_pkcs12_flags_t

This function will generate a MAC for the PKCS12 structure.

If  @code{flags} contains @code{GNUTLS_PKCS12_USE_PBMAC1} , it uses PBMAC1 key
derivation function instead of the PKCS@code{12}  one.

@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
negative error value.
@end deftypefun