00001 00006 #ifndef _PKCS12_H 00007 #define _PKCS12_H 00008 00009 #include "beecrypt/beecrypt.h" 00010 00011 #ifdef __cplusplus 00012 extern "C" { 00013 #endif 00014 00015 #define PKCS12_ID_CIPHER 0x1 00016 #define PKCS12_ID_IV 0x2 00017 #define PKCS12_ID_MAC 0x3 00018 00019 BEECRYPTAPI 00020 int pkcs12_derive_key(const hashFunction* h, byte id, const byte* pdata, size_t psize, const byte* sdata, size_t ssize, size_t iterationcount, byte* ndata, size_t nsize); 00021 00022 #ifdef __cplusplus 00023 } 00024 #endif 00025 00026 #endif