cryptlib
3.4.1
|
Go to the source code of this file.
Classes | |
struct | CMP_PROTOCOL_INFO |
Macros | |
#define | CMP_VERSION 2 /* CMP version */ |
#define | CMP_NONCE_SIZE 16 /* Size of nonces */ |
#define | CMP_PW_ITERATIONS_CLIB 500 /* PW hashing iter.for clib pws */ |
#define | CMP_PW_ITERATIONS_OTHER 2000 /* PW hashing iter.for non-clib pws */ |
#define | CMP_MAX_PW_ITERATIONS 10000 /* Max allowable iterations */ |
#define | CMP_CONTENT_TYPE "application/pkixcmp" |
#define | CMP_CONTENT_TYPE_LEN 19 |
#define | CMP_HMAC_KEYSIZE 20 |
#define | CMP_PFLAG_NONE 0x00 /* No protocol-specific flags */ |
#define | CMP_PFLAG_RETAINCONNECTION 0x01 /* Leave conn.open for further trans.*/ |
#define | CMP_PFLAG_CLIBIDSENT 0x02 /* cryptlib ID sent */ |
#define | CMP_PFLAG_USERIDSENT 0x04 /* User ID sent */ |
#define | CMP_PFLAG_CERTIDSENT 0x08 /* Certificate ID sent */ |
#define | CMP_PFLAG_MACINFOSENT 0x10 /* MAC parameters sent */ |
#define | CMP_PFLAG_PNPPKI 0x20 /* Session is PnP PKI-capable */ |
#define | CMPFAILINFO_NONE 0x00000000L |
#define | CMPFAILINFO_OK 0x00000000L |
#define | CMPFAILINFO_BADALG 0x00000001L |
#define | CMPFAILINFO_BADMESSAGECHECK 0x00000002L |
#define | CMPFAILINFO_BADREQUEST 0x00000004L |
#define | CMPFAILINFO_BADTIME 0x00000008L |
#define | CMPFAILINFO_BADCERTID 0x00000010L |
#define | CMPFAILINFO_BADDATAFORMAT 0x00000020L |
#define | CMPFAILINFO_WRONGAUTHORITY 0x00000040L |
#define | CMPFAILINFO_INCORRECTDATA 0x00000080L |
#define | CMPFAILINFO_MISSINGTIMESTAMP 0x00000100L |
#define | CMPFAILINFO_BADPOP 0x00000200L |
#define | CMPFAILINFO_CERTREVOKED 0x00000400L |
#define | CMPFAILINFO_CERTCONFIRMED 0x00000800L |
#define | CMPFAILINFO_WRONGINTEGRITY 0x00001000L |
#define | CMPFAILINFO_BADRECIPIENTNONCE 0x00002000L |
#define | CMPFAILINFO_TIMENOTAVAILABLE 0x00004000L |
#define | CMPFAILINFO_UNACCEPTEDPOLICY 0x00008000L |
#define | CMPFAILINFO_UNACCEPTEDEXTENSION 0x00010000L |
#define | CMPFAILINFO_ADDINFONOTAVAILABLE 0x00020000L |
#define | CMPFAILINFO_BADSENDERNONCE 0x00040000L |
#define | CMPFAILINFO_BADCERTTEMPLATE 0x00080000L |
#define | CMPFAILINFO_SIGNERNOTTRUSTED 0x00100000L |
#define | CMPFAILINFO_TRANSACTIONIDINUSE 0x00200000L |
#define | CMPFAILINFO_UNSUPPORTEDVERSION 0x00400000L |
#define | CMPFAILINFO_NOTAUTHORIZED 0x00800000L |
#define | CMPFAILINFO_SYSTEMUNAVAIL 0x01000000L |
#define | CMPFAILINFO_SYSTEMFAILURE 0x02000000L |
#define | CMPFAILINFO_DUPLICATECERTREQ 0x04000000L |
#define | CMPFAILINFO_LAST 0x08000000L |
#define | CMP_INIT_FLAG_NONE 0x00 |
#define | CMP_INIT_FLAG_USERID 0x01 |
#define | CMP_INIT_FLAG_TRANSID 0x02 |
#define | CMP_INIT_FLAG_MACINFO 0x04 |
#define | CMP_INIT_FLAG_MACCTX 0x08 |
#define | CMP_INIT_FLAG_ALL |
#define | CMP_INIT_FLAG_MAX 0x0F |
#define | OID_ENTRUST_MAC MKOID( "\x06\x09\x2A\x86\x48\x86\xF6\x7D\x07\x42\x0D" ) |
#define | objSize(length) ( ( int ) sizeofObject( length ) ) |
#define | DEBUG_DUMP_CMP(type, level, sessionInfo) |
Typedefs | |
typedef CHECK_RETVAL_FNPTR | STDC_NONNULL_ARG ((1, 2, 3)) int(*READMESSAGE_FUNCTION)(INOUT STREAM *stream |
typedef CHECK_RETVAL_FNPTR INOUT SESSION_INFO * | sessionInfoPtr |
typedef CHECK_RETVAL_FNPTR INOUT SESSION_INFO INOUT CMP_PROTOCOL_INFO * | protocolInfo |
typedef CHECK_RETVAL_FNPTR INOUT SESSION_INFO INOUT CMP_PROTOCOL_INFO | IN_ENUM_OPT (CMP_MESSAGE) const CMP_MESSAGE_TYPE messageType |
typedef CHECK_RETVAL_FNPTR INOUT SESSION_INFO INOUT CMP_PROTOCOL_INFO IN_LENGTH_SHORT const int | messageLength |
#define CMP_INIT_FLAG_ALL |
#define CMP_MAX_PW_ITERATIONS 10000 /* Max allowable iterations */ |
#define CMP_PFLAG_PNPPKI 0x20 /* Session is PnP PKI-capable */ |
#define CMP_PFLAG_RETAINCONNECTION 0x01 /* Leave conn.open for further trans.*/ |
#define CMP_PW_ITERATIONS_CLIB 500 /* PW hashing iter.for clib pws */ |
#define CMP_PW_ITERATIONS_OTHER 2000 /* PW hashing iter.for non-clib pws */ |
#define OID_ENTRUST_MAC MKOID( "\x06\x09\x2A\x86\x48\x86\xF6\x7D\x07\x42\x0D" ) |
typedef CHECK_RETVAL_FNPTR INOUT SESSION_INFO INOUT CMP_PROTOCOL_INFO IN_ENUM_OPT(CMP_MESSAGE) const CMP_MESSAGE_TYPE messageType |
typedef CHECK_RETVAL_FNPTR STDC_NONNULL_ARG((1, 2, 3)) int(*WRITEMESSAGE_FUNCTION)(INOUT STREAM *stream |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
anonymous enum |
enum CMP_MESSAGE_TYPE |
enum CMPBODY_TYPE |
CHECK_RETVAL_RANGE | ( | MAX_ERROR | , |
CTAG_PB_LAST | |||
) | const |
CHECK_RETVAL_PTR READMESSAGE_FUNCTION getMessageReadFunction | ( | IN_ENUM_OPT(CMP_MESSAGE) const CMP_MESSAGE_TYPE | messageType | ) |
CHECK_RETVAL_PTR WRITEMESSAGE_FUNCTION getMessageWriteFunction | ( | IN_ENUM(CMPBODY) const CMPBODY_TYPE | bodyType, |
const BOOLEAN | isServer | ||
) |
CHECK_RETVAL IN_BUFFER | ( | length | ) | const |
CHECK_RETVAL IN_BUFFER | ( | passwordLength | ) | const |
CHECK_RETVAL IN_LENGTH_SHORT const int IN_BUFFER | ( | saltLength | ) | const |
CHECK_RETVAL INOUT CMP_PROTOCOL_INFO IN_BUFFER | ( | messageLength | ) | const |
CHECK_RETVAL IN_LENGTH const int IN_BUFFER | ( | signatureLength | ) | const |
CHECK_RETVAL IN_BUFFER_OPT | ( | userIDlength | ) | const |
CHECK_RETVAL_BOOL INOUT CMP_PROTOCOL_INFO IN_ENUM | ( | CMPBODY | ) | const |
CHECK_RETVAL IN_STATUS const int IN_ENUM_OPT | ( | CMPFAILINFO | ) | const |
CHECK_RETVAL INOUT CMP_PROTOCOL_INFO IN_ENUM_OPT | ( | CTAG_PB | ) |
CHECK_RETVAL IN_LENGTH_SHORT_Z const int IN_FLAGS_Z | ( | CMP_INIT | ) | const |
|
new |
CHECK_RETVAL IN_ALGO const CRYPT_ALGO_TYPE IN_LENGTH_SHORT const int IN_LENGTH_SHORT_MIN | ( | 32 | ) | const |
CHECK_RETVAL IN_LENGTH_SHORT const int IN_LENGTH_SHORT const int IN_RANGE | ( | 1 | , |
CMP_MAX_PASSWORD_ITERATIONS | |||
) | const |
CHECK_RETVAL IN_ALGO const CRYPT_ALGO_TYPE IN_RANGE | ( | 0 | , |
999 | |||
) | const |
CHECK_RETVAL IN_ALGO const CRYPT_ALGO_TYPE IN_LENGTH_SHORT const int OUT_BUFFER | ( | protInfoMaxLength | , |
* | protInfoLength | ||
) |
CHECK_RETVAL int sizeofPkiStatusInfo | ( | IN_STATUS const int | pkiStatus, |
IN_ENUM_OPT(CMPFAILINFO) const long | pkiFailureInfo | ||
) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1) | ) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 26 of file ctx_attr.c.
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (2) | ) | const |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (2, 4) | ) | const |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2, 3, 5) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2, 3) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2, 4) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (2, 4, 6) | ) | const |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (4, 6, 8) | ) | const |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 3) | ) |
CHECK_RETVAL const BOOLEAN INOUT ERROR_INFO* errorInfo |
CHECK_RETVAL IN_ALGO const CRYPT_ALGO_TYPE hashAlgo |
CHECK_RETVAL IN_LENGTH const int IN_LENGTH_SHORT const int IN_HANDLE const CRYPT_HANDLE iAuthContext |
CHECK_RETVAL INOUT SSL_HANDSHAKE_INFO INOUT STREAM const BOOLEAN isServer |
CHECK_RETVAL IN_LENGTH_SHORT const int length |
CHECK_RETVAL INOUT CMP_PROTOCOL_INFO IN_LENGTH_SHORT const int passwordLength |
CHECK_RETVAL IN_STATUS const int pkiStatus |
CHECK_RETVAL IN_ALGO const CRYPT_ALGO_TYPE IN_LENGTH_SHORT const int OUT_LENGTH_SHORT_Z int * protInfoLength |
CHECK_RETVAL IN_LENGTH_SHORT const int IN_LENGTH_SHORT const int saltLength |
CHECK_RETVAL const CMP_PROTOCOL_INFO const BOOLEAN sendFullInfo |
CHECK_RETVAL IN_LENGTH const int IN_LENGTH_SHORT const int signatureLength |
CHECK_RETVAL IN_LENGTH_SHORT_Z const int userIDlength |