OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
p12_mutl.c File Reference
#include <stdio.h>
#include "cryptlib.h"
#include <openssl/hmac.h>
#include <openssl/rand.h>
#include <openssl/pkcs12.h>

Go to the source code of this file.

Functions

int PKCS12_gen_mac (PKCS12 *p12, const char *pass, int passlen, unsigned char *mac, unsigned int *maclen)
 
int PKCS12_verify_mac (PKCS12 *p12, const char *pass, int passlen)
 
int PKCS12_set_mac (PKCS12 *p12, const char *pass, int passlen, unsigned char *salt, int saltlen, int iter, const EVP_MD *md_type)
 
int PKCS12_setup_mac (PKCS12 *p12, int iter, unsigned char *salt, int saltlen, const EVP_MD *md_type)
 

Function Documentation

int PKCS12_gen_mac ( PKCS12 p12,
const char *  pass,
int  passlen,
unsigned char *  mac,
unsigned int *  maclen 
)

Definition at line 67 of file p12_mutl.c.

int PKCS12_set_mac ( PKCS12 p12,
const char *  pass,
int  passlen,
unsigned char *  salt,
int  saltlen,
int  iter,
const EVP_MD md_type 
)

Definition at line 132 of file p12_mutl.c.

int PKCS12_setup_mac ( PKCS12 p12,
int  iter,
unsigned char *  salt,
int  saltlen,
const EVP_MD md_type 
)

Definition at line 156 of file p12_mutl.c.

int PKCS12_verify_mac ( PKCS12 p12,
const char *  pass,
int  passlen 
)

Definition at line 113 of file p12_mutl.c.