cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Classes | Macros | Functions | Variables
pkcs12.h File Reference

Go to the source code of this file.

Classes

struct  PKCS12_OBJECT_INFO
 
struct  PKCS12_INFO
 

Macros

#define MAX_PKCS12_OBJECTS   8
 
#define MIN_KEYING_ITERATIONS   1000
 
#define MIN_OBJECT_SIZE   64
 
#define KEYWRAP_ID_WRAPKEY   1
 
#define KEYWRAP_ID_IV   2
 
#define KEYWRAP_ID_MACKEY   3
 
#define KEYWRAP_SALTSIZE   8
 
#define PKCS12_FLAG_NONE   0x00
 
#define PKCS12_FLAG_CERT   0x01 /* Object is certificate */
 
#define PKCS12_FLAG_ENCCERT   0x02 /* Object is encrypted cert. */
 
#define PKCS12_FLAG_PRIVKEY   0x04 /* Object is encrypted priv.key */
 
#define PKCS12_FLAG_MAX   0x07
 

Functions

CHECK_RETVAL_PTR STDC_NONNULL_ARG ((1)) PKCS12_INFO *pkcs12FindEntry(IN_ARRAY(noPkcs12objects) const PKCS12_INFO *pkcs12info
 
CHECK_RETVAL_PTR
IN_LENGTH_SHORT const int
IN_KEYID const
CRYPT_KEYID_TYPE 
IN_BUFFER_OPT (keyIDlength) const void *keyID
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 3, 5)) int createPkcs12KeyWrapContext(INOUT PKCS12_OBJECT_INFO *pkcs12objectInfo
 
CHECK_RETVAL IN_HANDLE const
CRYPT_USER 
IN_BUFFER (passwordLength) const char *password
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2, 5)) int pkcs12ReadKeyset(INOUT STREAM *stream
 
CHECK_RETVAL OUT_ARRAY (maxNoPkcs12objects) PKCS12_INFO *pkcs12info
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2, 4)) int pkcs12ReadObject(INOUT STREAM *stream
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2)) int pkcs12Flush(INOUT STREAM *stream
 
CHECK_RETVAL IN_ARRAY (noPkcs12objects) const PKCS12_INFO *pkcs12info
 

Variables

CHECK_RETVAL_PTR
IN_LENGTH_SHORT const int 
noPkcs12objects
 
CHECK_RETVAL_PTR
IN_LENGTH_SHORT const int
IN_KEYID const
CRYPT_KEYID_TYPE 
keyIDtype
 
CHECK_RETVAL_PTR
IN_LENGTH_SHORT const int
IN_KEYID const
CRYPT_KEYID_TYPE
IN_LENGTH_KEYID_Z const int 
keyIDlength
 
CHECK_RETVAL IN_LENGTH_SHORT
const int
OUT_OPT_LENGTH_SHORT_Z int * 
index
 
CHECK_RETVAL IN_HANDLE const
CRYPT_USER 
cryptOwner
 
CHECK_RETVAL IN_HANDLE const
CRYPT_USER IN_LENGTH_NAME
const int 
passwordLength
 
CHECK_RETVAL IN_HANDLE const
CRYPT_USER IN_LENGTH_NAME
const int OUT_HANDLE_OPT
CRYPT_CONTEXT
iCryptContext
 
CHECK_RETVAL IN_HANDLE const
CRYPT_USER IN_LENGTH_NAME
const int OUT_HANDLE_OPT
CRYPT_CONTEXT const BOOLEAN 
initParams
 
CHECK_RETVAL IN_LENGTH_SHORT
const int 
maxNoPkcs12objects
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_LENGTH const long 
endPos
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_LENGTH const long
INOUT ERROR_INFO
errorInfo
 
CHECK_RETVAL OUT PKCS12_INFOpkcs12info
 
CHECK_RETVAL OUT PKCS12_INFO
const BOOLEAN 
isEncryptedCert
 

Macro Definition Documentation

#define KEYWRAP_ID_IV   2

Definition at line 58 of file pkcs12.h.

#define KEYWRAP_ID_MACKEY   3

Definition at line 59 of file pkcs12.h.

#define KEYWRAP_ID_WRAPKEY   1

Definition at line 57 of file pkcs12.h.

#define KEYWRAP_SALTSIZE   8

Definition at line 61 of file pkcs12.h.

#define MAX_PKCS12_OBJECTS   8

Definition at line 41 of file pkcs12.h.

#define MIN_KEYING_ITERATIONS   1000

Definition at line 46 of file pkcs12.h.

#define MIN_OBJECT_SIZE   64

Definition at line 51 of file pkcs12.h.

#define PKCS12_FLAG_CERT   0x01 /* Object is certificate */

Definition at line 66 of file pkcs12.h.

#define PKCS12_FLAG_ENCCERT   0x02 /* Object is encrypted cert. */

Definition at line 67 of file pkcs12.h.

#define PKCS12_FLAG_MAX   0x07

Definition at line 69 of file pkcs12.h.

#define PKCS12_FLAG_NONE   0x00

Definition at line 65 of file pkcs12.h.

#define PKCS12_FLAG_PRIVKEY   0x04 /* Object is encrypted priv.key */

Definition at line 68 of file pkcs12.h.

Function Documentation

CHECK_RETVAL IN_ARRAY ( noPkcs12objects  ) const
CHECK_RETVAL_PTR STDC_NONNULL_ARG ( (1)  ) const
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 3, 5)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2, 5)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2, 4)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2)  )

Variable Documentation

Definition at line 156 of file pkcs12.h.

Definition at line 174 of file pkcs12.h.

Definition at line 174 of file pkcs12.h.

Definition at line 158 of file pkcs12.h.

Definition at line 148 of file pkcs12.h.

Definition at line 158 of file pkcs12.h.

Definition at line 184 of file pkcs12.h.

Definition at line 144 of file pkcs12.h.

Definition at line 141 of file pkcs12.h.

CHECK_RETVAL IN_LENGTH_SHORT const int maxNoPkcs12objects

Definition at line 174 of file pkcs12.h.

CHECK_RETVAL IN_LENGTH_SHORT const int noPkcs12objects

Definition at line 141 of file pkcs12.h.

Definition at line 158 of file pkcs12.h.

Definition at line 184 of file pkcs12.h.