|
#define | isBadPassword(password) |
|
#define | HWCAP_FLAG_NONE 0x00 /* No special HW capabilities */ |
|
#define | HWCAP_FLAG_RDTSC 0x01 /* x86 RDTSC instruction support */ |
|
#define | HWCAP_FLAG_XSTORE 0x02 /* VIA XSTORE instruction support */ |
|
#define | HWCAP_FLAG_XCRYPT 0x04 /* VIA XCRYPT instruction support */ |
|
#define | HWCAP_FLAG_XSHA 0x08 /* VIA XSHA instruction support */ |
|
#define | HWCAP_FLAG_MONTMUL 0x10 /* VIA bignum instruction support */ |
|
#define | HWCAP_FLAG_TRNG 0x20 /* AMD Geode LX TRNG MSR support */ |
|
#define | HWCAP_FLAG_AES 0x40 /* Intel AES instruction support */ |
|
#define | HWCAP_FLAG_RDRAND 0x80 /* Intel RDRAND instruction support */ |
|
#define | INTERNAL_ERROR 0 /* Symbolic define for assertion failure */ |
|
#define | retIntError() |
|
#define | retIntError_Null() |
|
#define | retIntError_Boolean() |
|
#define | retIntError_Void() |
|
#define | retIntError_Ext(value) |
|
#define | retIntError_Stream(stream) |
|
#define | REQUIRES(x) if( !( x ) ) retIntError() |
|
#define | REQUIRES_N(x) if( !( x ) ) retIntError_Null() |
|
#define | REQUIRES_B(x) if( !( x ) ) retIntError_Boolean() |
|
#define | REQUIRES_V(x) if( !( x ) ) retIntError_Void() |
|
#define | REQUIRES_EXT(x, y) if( !( x ) ) retIntError_Ext( y ) |
|
#define | REQUIRES_S(x) if( !( x ) ) retIntError_Stream( stream ) |
|
#define | ENSURES(x) if( !( x ) ) retIntError() |
|
#define | ENSURES_N(x) if( !( x ) ) retIntError_Null() |
|
#define | ENSURES_B(x) if( !( x ) ) retIntError_Boolean() |
|
#define | ENSURES_V(x) if( !( x ) ) retIntError_Void() |
|
#define | ENSURES_EXT(x, y) if( !( x ) ) retIntError_Ext( y ) |
|
#define | ENSURES_S(x) if( !( x ) ) retIntError_Stream( stream ) |
|
#define | clearErrorString(errorInfoPtr) |
|
#define | setErrorString(errorInfoPtr, string, stringLength) ; |
|
#define | retExt(status, extStatus) return status |
|
#define | retExtArg(status, extStatus) return status |
|
#define | retExtObj(status, extStatus) return status |
|
#define | retExtStr(status, extStatus) return status |
|
#define | retExtErr(status, extStatus) return status |
|
#define | retExtErrAlt(status, extStatus) return status |
|
#define | retExt_IntError(status, extStatus) |
|
#define | ENVELOPE_ERRINFO &envelopeInfoPtr->errorInfo |
|
#define | KEYSET_ERRINFO &keysetInfoPtr->errorInfo |
|
#define | SESSION_ERRINFO &sessionInfoPtr->errorInfo |
|
#define | STREAM_ERRINFO stream->errorInfo |
|
#define | NETSTREAM_ERRINFO &netStream->errorInfo |
|
#define | insertSingleListElement(listHead, insertPoint, newElement) |
|
#define | insertDoubleListElements(listHead, insertPoint, newStartElement, newEndElement) |
|
#define | insertDoubleListElement(listHead, insertPoint, newElement) insertDoubleListElements( listHead, insertPoint, newElement, newElement ) |
|
#define | deleteSingleListElement(listHead, listPrev, element) |
|
#define | deleteDoubleListElement(listHead, element) |
|
#define | DYNBUF_SIZE 1024 |
|
#define | dynLength(dynBuf) ( dynBuf ).length |
|
#define | dynData(dynBuf) ( dynBuf ).data |
|
#define | DECLARE_VARSTRUCT_VARS |
|
#define | initVarStruct(structure, structureType, size) |
|
#define | copyVarStruct(destStructure, srcStructure, structureType) |
|
#define | endVarStruct(structure, structureType) zeroise( structure, sizeof( structureType ) + structure->storageSize ) |
|
#define | sizeofVarStruct(structure, structureType) ( sizeof( structureType ) + structure->storageSize ) |
|
#define | HASH_DATA_SIZE 16 |
|
#define | initSigParams(sigParams) |
|
#define | setX509FormatInfo(formatInfo, formatTag, formatIsExplicit) |
|
#define | createCertificateIndirect(createInfo, auxDataPtr, auxValue) CRYPT_ERROR_NOTAVAIL |
|
|
CHECK_RETVAL | STDC_NONNULL_ARG ((1, 2)) int attributeCopy(INOUT MESSAGE_DATA *msgData |
|
CHECK_RETVAL | IN_BUFFER (attributeLength) const void *attribute |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((3)) int attributeCopyParams(OUT_BUFFER_OPT(destMaxLength |
|
CHECK_RETVAL *destLength void
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int | IN_BUFFER_OPT (sourceLength) const void *source |
|
CHECK_RETVAL_BOOL BOOLEAN | algoAvailable (IN_ALGO const CRYPT_ALGO_TYPE cryptAlgo) |
|
CHECK_RETVAL_BOOL BOOLEAN | isStrongerHash (IN_ALGO const CRYPT_ALGO_TYPE algorithm1, IN_ALGO const CRYPT_ALGO_TYPE algorithm2) |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((1)) BOOLEAN checkEntropy(IN_BUFFER(dataLength) const BYTE *data |
|
CHECK_RETVAL | IN_LENGTH_SHORT_MIN (MIN_KEYSIZE) const int dataLength) |
|
| CHECK_RETVAL_RANGE (0, 32767) int getRandomInteger(void) |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((2, 3)) int mapValue(IN_INT_SHORT_Z const int srcValue |
|
CHECK_RETVAL OUT_INT_SHORT_Z int | IN_ARRAY (mapTblSize) const MAP_TABLE *mapTbl |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((1, 2, 3, 5)) int readTextLine(READCHARFUNCTION readCharFunction |
|
CHECK_RETVAL INOUT void | OUT_BUFFER (lineBufferMaxLen,*lineBufferSize) char *lineBuffer |
|
CHECK_RETVAL INOUT void | IN_LENGTH_SHORT_MIN (16) const int lineBufferMaxLen |
|
CHECK_RETVAL int | initSysVars (void) |
|
CHECK_RETVAL int | getSysVar (const SYSVAR_TYPE type) |
|
| CHECK_RETVAL_STRINGOP (strLen) STDC_NONNULL_ARG((1)) int strFindCh(IN_BUFFER(strLen) const char *str |
|
int | strFindStr (IN_BUFFER(strLen) const char *str, IN_LENGTH_SHORT const int strLen, IN_BUFFER(findStrLen) const char *findStr, IN_LENGTH_SHORT const int findStrLen) |
|
int | strStripWhitespace (OUT_OPT_PTR const char **newStringPtr, IN_BUFFER(strLen) const char *string, IN_LENGTH_SHORT const int strLen) |
|
CHECK_RETVAL | IN_BUFFER (strLen) const char *string |
|
CHECK_RETVAL IN_LENGTH_SHORT
const int OUT_INT_Z int | IN_RANGE (0, 100) const int minValue |
|
CHECK_RETVAL IN_LENGTH_SHORT
const int OUT_INT_Z int | IN_RANGE (minValue, MAX_INTLENGTH) const int maxValue) |
|
CHECK_RETVAL int | retExtFn (IN_ERROR const int status, OUT ERROR_INFO *errorInfoPtr, FORMAT_STRING const char *format,...) |
|
CHECK_RETVAL int | retExtArgFn (IN_ERROR const int status, OUT ERROR_INFO *errorInfoPtr, FORMAT_STRING const char *format,...) |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((2, 4)) STDC_PRINTF_FN(4 |
|
CHECK_RETVAL int | retExtObjFn (IN_ERROR const int status, OUT ERROR_INFO *errorInfoPtr, IN_HANDLE const CRYPT_HANDLE extErrorObject, FORMAT_STRING const char *format,...) |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((2, 3, 5)) STDC_PRINTF_FN(5 |
|
CHECK_RETVAL int | retExtStrFn (IN_ERROR const int status, OUT ERROR_INFO *errorInfoPtr, IN_BUFFER(extErrorStringLength) const char *extErrorString, IN_LENGTH_ERRORMESSAGE const int extErrorStringLength, FORMAT_STRING const char *format,...) |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((2, 3, 4)) STDC_PRINTF_FN(4 |
|
CHECK_RETVAL int | retExtErrFn (IN_ERROR const int status, OUT ERROR_INFO *errorInfoPtr, const ERROR_INFO *existingErrorInfoPtr, FORMAT_STRING const char *format,...) |
|
CHECK_RETVAL int | retExtErrAltFn (IN_ERROR const int status, OUT ERROR_INFO *errorInfoPtr, FORMAT_STRING const char *format,...) |
|
CHECK_RETVAL_BOOL | STDC_NONNULL_ARG ((1, 4)) int iCryptImportCertIndirect(OUT_HANDLE_OPT CRYPT_CERTIFICATE *iCertificate |
|
CHECK_RETVAL_BOOL IN_HANDLE
const CRYPT_HANDLE | IN_ENUM (CRYPT_KEYID) const CRYPT_KEYID_TYPE keyIDtype |
|
CHECK_RETVAL_BOOL IN_HANDLE
const CRYPT_HANDLE | IN_BUFFER (keyIDlength) const void *keyID |
|
CHECK_RETVAL_BOOL IN_HANDLE
const CRYPT_HANDLE
IN_LENGTH_SHORT const int | IN_FLAGS_Z (KEYMGMT) const int options) |
|
CHECK_RETVAL IN_HANDLE const
CRYPT_HANDLE | IN_LENGTH_FIXED (CRYPT_IATTRIBUTE_RANDOM_NONCE) const CRYPT_ATTRIBUTE_TYPE attributeType |
|
CHECK_RETVAL IN_HANDLE const
CRYPT_HANDLE | IN_RANGE (8, 1024) const int attributeDataLength) |
|
CHECK_RETVAL IN_HANDLE const
CRYPT_CERTIFICATE | IN_ENUM (CRYPT_CERTFORMAT) const CRYPT_CERTFORMAT_TYPE certFormatType) |
|
CHECK_RETVAL OUT_HANDLE_OPT
CRYPT_CERTIFICATE IN_HANDLE
const CRYPT_USER | IN_ENUM (CRYPT_CERTTYPE) const CRYPT_CERTTYPE_TYPE certType |
|
CHECK_RETVAL OUT_HANDLE_OPT
CRYPT_CERTIFICATE IN_HANDLE
const CRYPT_USER | IN_LENGTH_SHORT_MIN (MIN_CRYPT_OBJECTSIZE) const int certDataLength) |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((1, 3)) int base64checkHeader(IN_BUFFER(dataLength) const char *data |
|
CHECK_RETVAL IN_LENGTH const int | OUT_ENUM_OPT (CRYPT_CERTFORMAT) CRYPT_CERTFORMAT_TYPE *format |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((2)) int base64encodeLen(IN_LENGTH_MIN(10) const int dataLength |
|
CHECK_RETVAL OUT_LENGTH_Z int | IN_ENUM_OPT (CRYPT_CERTTYPE) const CRYPT_CERTTYPE_TYPE certType) |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((1, 3, 4)) int base64encode(OUT_BUFFER(destMaxLen |
|
CHECK_RETVAL *destLen char | IN_LENGTH_MIN (10) const int destMaxLen |
|
CHECK_RETVAL *destLen char
OUT_LENGTH_Z int | IN_BUFFER (srcLen) const void *src |
|
CHECK_RETVAL *destLen void
OUT_LENGTH_Z int | IN_ENUM_OPT (CRYPT_CERTFORMAT) const CRYPT_CERTFORMAT_TYPE format) |
|
CHECK_RETVAL_BOOL | IN_LENGTH_SHORT_MIN (10) const int encValLength) |
|
CHECK_RETVAL *encValLen char
OUT_LENGTH_SHORT_Z int | IN_BUFFER (valueLen) const BYTE *value |
|
CHECK_RETVAL *encValLen char
OUT_LENGTH_SHORT_Z int | IN_LENGTH_SHORT_MIN (8) const int valueLen |
|
CHECK_RETVAL *encValLen char
OUT_LENGTH_SHORT_Z int | IN_RANGE (3, 4) const int noCodeGroups) |
|
CHECK_RETVAL *valueLen BYTE
OUT_LENGTH_SHORT_Z int | IN_BUFFER (encValLength) const char *encVal |
|
CHECK_RETVAL_PTR IN GETATTRFUNCTION | IN_ENUM_OPT (CRYPT_ATTRIBUTE) const CRYPT_ATTRIBUTE_TYPE groupID |
|
CHECK_RETVAL_PTR IN
GETATTRFUNCTION IN_ATTRIBUTE
const CRYPT_ATTRIBUTE_TYPE | IN_RANGE (CRYPT_CURSOR_LAST, CRYPT_CURSOR_FIRST) const int cursorMoveType) |
|
time_t | getTime (void) |
|
time_t | getApproxTime (void) |
|
time_t | getReliableTime (IN_HANDLE const CRYPT_HANDLE cryptHandle) |
|
CHECK_RETVAL long | getTickCount (long startTime) |
|
CHECK_RETVAL | IN_BUFFER (memPoolSize) void *memPool |
|
CHECK_RETVAL | IN_LENGTH_SHORT_MIN (64) const int memPoolSize) |
|
| RETVAL_RANGE (MAX_ERROR, 0xFFFF) STDC_NONNULL_ARG((1)) int checksumData(IN_BUFFER(dataLength) const void *data |
|
IN_LENGTH_HASH const int | IN_BUFFER (dataLength) const void *data |
|
CHECK_RETVAL_BOOL | IN_BUFFER (length) const void *dest |
|
CHECK_RETVAL *signatureLength
void IN_LENGTH_Z const int
OUT_LENGTH_Z int | IN_ENUM (CRYPT_FORMAT) const CRYPT_FORMAT_TYPE formatType |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((3, 4)) int createX509signature(OUT_BUFFER_OPT(signedObjectMaxLength |
|
CHECK_RETVAL
*signedObjectLength void
IN_LENGTH_Z const int
OUT_LENGTH_Z int | IN_BUFFER (objectLength) const void *object |
|
CHECK_RETVAL | STDC_NONNULL_ARG ((3, 5, 7)) int writeFlatPublicKey(OUT_BUFFER_OPT(bufMaxSize |
|
CHECK_RETVAL *bufSize void
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN_ALGO
const CRYPT_ALGO_TYPE | IN_BUFFER (component1Length) const void *component1 |
|
CHECK_RETVAL *bufSize void
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN_ALGO
const CRYPT_ALGO_TYPE
IN_LENGTH_PKC const int | IN_BUFFER (component2Length) const void *component2 |
|
CHECK_RETVAL *bufSize void
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN_ALGO
const CRYPT_ALGO_TYPE
IN_LENGTH_PKC const int
IN_LENGTH_PKC const int | IN_BUFFER_OPT (component3Length) const void *component3 |
|
CHECK_RETVAL *bufSize void
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN_ALGO
const CRYPT_ALGO_TYPE
IN_LENGTH_PKC const int
IN_LENGTH_PKC const int
IN_LENGTH_PKC_Z const int | IN_BUFFER_OPT (component4Length) const void *component4 |
|
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_LENGTH_PKC const
int IN_LENGTH_PKC const int
IN_OPT const void | IN_ENUM_OPT (KEYSIZE_CHECK) const KEYSIZE_CHECK_TYPE checkType) |
|
CHECK_RETVAL *dataLength void
OUT_LENGTH_SHORT_Z int IN | TYPECAST (BIGNUM *) const void *bignumPtr) |
|