cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Classes | Macros | Typedefs | Enumerations | Functions | Variables
int_api.h File Reference
#include <time.h>

Go to the source code of this file.

Classes

struct  MAP_TABLE
 
struct  ERROR_INFO
 
struct  MONOTIMER_INFO
 
struct  DYNBUF
 
struct  SIGPARAMS
 
struct  X509SIG_FORMATINFO
 

Macros

#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
 

Typedefs

typedef CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1)) int(*READCHARFUNCTION)(INOUT void *streamPtr)
 
typedef CHECK_RETVAL_PTR_FNPTR
const void *(* 
GETATTRFUNCTION )(IN_OPT const void *attributePtr, OUT_OPT_ATTRIBUTE_Z CRYPT_ATTRIBUTE_TYPE *groupID, OUT_OPT_ATTRIBUTE_Z CRYPT_ATTRIBUTE_TYPE *attributeID, OUT_OPT_ATTRIBUTE_Z CRYPT_ATTRIBUTE_TYPE *instanceID, IN_ENUM(ATTR) const ATTR_TYPE attrGetType)
 
typedef BYTE MEMPOOL_STATE [32]
 
typedef BYTE HASHINFO [(27 *4)+8]
 
typedef void(* HASHFUNCTION )(INOUT_OPT HASHINFO hashInfo, OUT_BUFFER_OPT_FIXED(outBufMaxLength) BYTE *outBuffer, IN_LENGTH_HASH const int outBufMaxLength, IN_BUFFER_OPT(inLength) const void *inBuffer, IN_LENGTH_Z const int inLength, IN_ENUM(HASH_STATE) const HASH_STATE hashState)
 
typedef IN_LENGTH_HASH const int outBufMaxLength
 
typedef IN_LENGTH_HASH const int IN_BUFFER (inLength) const void *inBuffer
 
typedef IN_LENGTH_HASH const
int IN_LENGTH const int 
inLength
 

Enumerations

enum  SYSVAR_TYPE { SYSVAR_NONE, SYSVAR_HWCAP, SYSVAR_LAST }
 
enum  ATTR_TYPE {
  ATTR_NONE, ATTR_CURRENT, ATTR_PREV, ATTR_NEXT,
  ATTR_LAST
}
 
enum  HASH_STATE {
  HASH_STATE_NONE, HASH_STATE_START, HASH_STATE_CONTINUE, HASH_STATE_END,
  HASH_STATE_LAST
}
 
enum  KEYSIZE_CHECK_TYPE {
  KEYSIZE_CHECK_NONE, KEYSIZE_CHECK_PKC, KEYSIZE_CHECK_ECC, KEYSIZE_CHECK_LAST = KEYSIZE_CHECK_ECC + 1,
  KEYSIZE_CHECK_SPECIAL, KEYSIZE_CHECK_LAST_SPECIAL
}
 

Functions

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)
 

Variables

CHECK_RETVAL IN_LENGTH_SHORT_Z
const int 
attributeLength
 
CHECK_RETVAL *destLength void * dest
 
CHECK_RETVAL *destLength void
IN_LENGTH_SHORT_Z const int 
destMaxLength
 
CHECK_RETVAL *destLength void
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int * 
destLength
 
CHECK_RETVAL *destLength void
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int
IN_LENGTH_SHORT_Z const int 
sourceLength
 
CHECK_RETVAL OUT_INT_SHORT_Z int * destValue
 
CHECK_RETVAL OUT_INT_SHORT_Z
int IN_LENGTH_SHORT const int 
mapTblSize
 
CHECK_RETVAL INOUT void * streamPtr
 
CHECK_RETVAL INOUT void
OUT_LENGTH_SHORT_Z int * 
lineBufferSize
 
CHECK_RETVAL INOUT void
OUT_LENGTH_SHORT_Z int
OUT_OPT_BOOL BOOLEAN
localError
 
strLen BYTEstring
 
strLen BYTE IN_LENGTH_SHORT
const int 
strMaxLen
 
strLen BYTE IN_LENGTH_SHORT
const int IN_LENGTH_SHORT
const int 
strLen
 
IN_LENGTH_SHORT const int
IN_CHAR const int 
findCh
 
CHECK_RETVAL IN_LENGTH_SHORT
const int 
startOffset
 
CHECK_RETVAL IN_LENGTH_SHORT
const int OUT_INT_Z int * 
numericValue
 
const ERROR_INFOsrcErrorInfoPtr
 
CHECK_RETVAL_BOOL IN_HANDLE
const CRYPT_HANDLE 
iCertSource
 
CHECK_RETVAL_BOOL IN_HANDLE
const CRYPT_HANDLE
IN_LENGTH_SHORT const int 
keyIDlength
 
CHECK_RETVAL OUT_HANDLE_OPT
CRYPT_CONTEXT
iPubkeyContext
 
CHECK_RETVAL OUT_HANDLE_OPT
CRYPT_CONTEXT IN_HANDLE const
CRYPT_DEVICE 
iCreatorHandle
 
CHECK_RETVAL OUT_HANDLE_OPT
CRYPT_CONTEXT IN_HANDLE const
CRYPT_DEVICE const BOOLEAN 
deferredLoad
 
CHECK_RETVAL OUT QUERY_INFOqueryInfo
 
CHECK_RETVAL IN_HANDLE const
CRYPT_HANDLE 
cryptHandle
 
CHECK_RETVAL IN_HANDLE const
CRYPT_HANDLE IN_ATTRIBUTE
const CRYPT_ATTRIBUTE_TYPE 
attributeType
 
CHECK_RETVAL IN_HANDLE const
CRYPT_CERTIFICATE 
cryptCertificate
 
CHECK_RETVAL OUT_HANDLE_OPT
CRYPT_CERTIFICATE IN_HANDLE
const CRYPT_USER 
iCryptOwner
 
CHECK_RETVAL IN_LENGTH const int dataLength
 
CHECK_RETVAL IN_LENGTH const
int OUT_LENGTH_Z int * 
startPos
 
CHECK_RETVAL OUT_LENGTH_Z int * encodedLength
 
CHECK_RETVAL *destLen char
OUT_LENGTH_Z int * 
destLen
 
CHECK_RETVAL OUT_LENGTH_Z int * decodedLength
 
CHECK_RETVAL *encValLen char * encVal
 
CHECK_RETVAL *encValLen char
OUT_LENGTH_SHORT_Z int * 
encValLen
 
CHECK_RETVAL *valueLen BYTEvalue
 
CHECK_RETVAL *valueLen BYTE
OUT_LENGTH_SHORT_Z int * 
valueLen
 
CHECK_RETVAL *valueLen BYTE
OUT_LENGTH_SHORT_Z int
IN_LENGTH_SHORT const int 
encValLength
 
CHECK_RETVAL_PTR IN GETATTRFUNCTION getAttrFunction
 
CHECK_RETVAL_PTR IN
GETATTRFUNCTION IN_ATTRIBUTE
const CRYPT_ATTRIBUTE_TYPE 
attributeID
 
CHECK_RETVAL_PTR IN
GETATTRFUNCTION IN_ATTRIBUTE
const CRYPT_ATTRIBUTE_TYPE 
attributeMoveType
 
CHECK_RETVAL IN_INT const int duration
 
CHECK_RETVAL_BOOL IN_INT const int timeLeft
 
CHECK_RETVAL_PTR
IN_LENGTH_SHORT const int 
size
 
IN void * memblock
 
IN_INT_SHORT_Z const int hashParams
 
IN_INT_SHORT_Z const int
OUT_PTR HASHFUNCTION
hashFunction
 
IN_INT_SHORT_Z const int
OUT_PTR HASHFUNCTION
OUT_OPT_LENGTH_SHORT_Z int * 
hashOutputSize
 
IN_INT_SHORT_Z const int
OUT_PTR HASHFUNCTION_ATOMIC * 
hashFunctionAtomic
 
IN_LENGTH_HASH const int hashMaxLength
 
CHECK_RETVAL_BOOL
IN_LENGTH_SHORT const int 
length
 
CHECK_RETVAL *signatureLength
void * 
signature
 
CHECK_RETVAL *signatureLength
void IN_LENGTH_Z const int 
signatureMaxLength
 
CHECK_RETVAL *signatureLength
void IN_LENGTH_Z const int
OUT_LENGTH_Z int * 
signatureLength
 
CHECK_RETVAL *signatureLength
void IN_LENGTH_Z const int
OUT_LENGTH_Z int IN_HANDLE
const CRYPT_CONTEXT 
iSignContext
 
CHECK_RETVAL *signatureLength
void IN_LENGTH_Z const int
OUT_LENGTH_Z int IN_HANDLE
const CRYPT_CONTEXT IN_HANDLE
const CRYPT_CONTEXT 
iHashContext
 
CHECK_RETVAL *signatureLength
void IN_LENGTH_Z const int
OUT_LENGTH_Z int IN_HANDLE
const CRYPT_CONTEXT IN_HANDLE
const CRYPT_CONTEXT IN_OPT
const SIGPARAMS
sigParams
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_HANDLE const
CRYPT_HANDLE 
iSigCheckKey
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_HANDLE const
CRYPT_HANDLE IN_HANDLE const
CRYPT_CONTEXT IN_HANDLE const
CRYPT_CONTEXT 
iHash2Context
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_HANDLE const
CRYPT_HANDLE IN_HANDLE const
CRYPT_CONTEXT IN_HANDLE const
CRYPT_CONTEXT
OUT_OPT_HANDLE_OPT
CRYPT_HANDLE
extraData
 
CHECK_RETVAL IN_LENGTH_SHORT
const int 
encryptedKeyLength
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_HANDLE const
CRYPT_CONTEXT 
iImportKey
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_HANDLE const
CRYPT_CONTEXT IN_HANDLE_OPT
const CRYPT_CONTEXT 
iSessionKeyContext
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_HANDLE const
CRYPT_CONTEXT IN_HANDLE_OPT
const CRYPT_CONTEXT
OUT_OPT_HANDLE_OPT
CRYPT_CONTEXT
iReturnedContext
 
CHECK_RETVAL
*encryptedKeyLength void * 
encryptedKey
 
CHECK_RETVAL
*encryptedKeyLength void
IN_LENGTH_Z const int 
encryptedKeyMaxLength
 
CHECK_RETVAL
*encryptedKeyLength void
IN_LENGTH_Z const int
OUT_LENGTH_Z int IN_HANDLE_OPT
const CRYPT_CONTEXT IN_HANDLE
const CRYPT_CONTEXT 
iExportKey
 
CHECK_RETVAL
*signedObjectLength void * 
signedObject
 
CHECK_RETVAL
*signedObjectLength void
IN_LENGTH_Z const int 
signedObjectMaxLength
 
CHECK_RETVAL
*signedObjectLength void
IN_LENGTH_Z const int
OUT_LENGTH_Z int * 
signedObjectLength
 
CHECK_RETVAL
*signedObjectLength void
IN_LENGTH_Z const int
OUT_LENGTH_Z int IN_LENGTH
const int 
objectLength
 
CHECK_RETVAL
*signedObjectLength void
IN_LENGTH_Z const int
OUT_LENGTH_Z int IN_LENGTH
const int IN_HANDLE const
CRYPT_CONTEXT IN_ALGO const
CRYPT_ALGO_TYPE 
hashAlgo
 
CHECK_RETVAL
*signedObjectLength void
IN_LENGTH_Z const int
OUT_LENGTH_Z int IN_LENGTH
const int IN_HANDLE const
CRYPT_CONTEXT IN_ALGO const
CRYPT_ALGO_TYPE IN_OPT const
X509SIG_FORMATINFO
formatInfo
 
CHECK_RETVAL IN_LENGTH const
int IN_HANDLE const
CRYPT_CONTEXT 
iSigCheckContext
 
CHECK_RETVAL *bufSize void * buffer
 
CHECK_RETVAL *bufSize void
IN_LENGTH_SHORT_Z const int 
bufMaxSize
 
CHECK_RETVAL *bufSize void
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int * 
bufSize
 
CHECK_RETVAL *bufSize void
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN_ALGO
const CRYPT_ALGO_TYPE 
cryptAlgo
 
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 
component1Length
 
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 
component2Length
 
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 
component3Length
 
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_LENGTH_PKC_Z const int 
component4Length
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_LENGTH_PKC const
int 
minLength
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_LENGTH_PKC const
int IN_LENGTH_PKC const int 
maxLength
 
CHECK_RETVAL IN_LENGTH_SHORT
const int IN_LENGTH_PKC const
int IN_LENGTH_PKC const int
IN_OPT const void * 
maxRangePtr
 
CHECK_RETVAL *dataLength void * data
 

Macro Definition Documentation

#define clearErrorString (   errorInfoPtr)

Definition at line 375 of file int_api.h.

#define copyVarStruct (   destStructure,
  srcStructure,
  structureType 
)
Value:
memcpy( destStructure, srcStructure, \
sizeof( structureType ) + srcStructure->storageSize ); \
destStructure->value = destStructure->storage;

Definition at line 908 of file int_api.h.

#define createCertificateIndirect (   createInfo,
  auxDataPtr,
  auxValue 
)    CRYPT_ERROR_NOTAVAIL

Definition at line 1226 of file int_api.h.

#define DECLARE_VARSTRUCT_VARS
Value:
int storageSize; \
void *_align_value; \
BUFFER_FIXED( storageSize ) \
BYTE storage[ 1 ]

Definition at line 897 of file int_api.h.

#define deleteDoubleListElement (   listHead,
  element 
)
Value:
{ \
/* Make sure that the preconditions for safe delection are met */ \
REQUIRES( listHead != NULL && element != NULL ); \
\
/* Make sure that the links are consistent */ \
REQUIRES( ( element )->next == NULL || \
( element )->next->prev == ( element ) ); \
REQUIRES( ( element )->prev == NULL || \
( element )->prev->next == ( element ) ); \
\
/* Unlink the element from the list */ \
if( element == *( listHead ) ) \
{ \
/* Special case for first item */ \
*( listHead ) = ( element )->next; \
} \
else \
{ \
/* Further consistency check */ \
REQUIRES( ( element )->prev != NULL ); \
\
/* Delete from the middle or the end of the list */ \
( element )->prev->next = ( element )->next; \
} \
if( ( element )->next != NULL ) \
( element )->next->prev = ( element )->prev; \
}

Definition at line 666 of file int_api.h.

#define deleteSingleListElement (   listHead,
  listPrev,
  element 
)
Value:
{ \
/* Make sure that the preconditions for safe delection are met */ \
REQUIRES( listHead != NULL && element != NULL ); \
REQUIRES( element == *( listHead ) || listPrev != NULL ); \
\
if( element == *( listHead ) ) \
{ \
/* Special case for first item */ \
*( listHead ) = element->next; \
} \
else \
{ \
ANALYSER_HINT( listPrev != NULL ); \
\
/* Delete from middle or end of the list */ \
listPrev->next = element->next; \
} \
}

Definition at line 646 of file int_api.h.

#define DYNBUF_SIZE   1024

Definition at line 825 of file int_api.h.

#define dynData (   dynBuf)    ( dynBuf ).data

Definition at line 848 of file int_api.h.

#define dynLength (   dynBuf)    ( dynBuf ).length

Definition at line 847 of file int_api.h.

#define endVarStruct (   structure,
  structureType 
)    zeroise( structure, sizeof( structureType ) + structure->storageSize )

Definition at line 913 of file int_api.h.

#define ENSURES (   x)    if( !( x ) ) retIntError()

Definition at line 310 of file int_api.h.

#define ENSURES_B (   x)    if( !( x ) ) retIntError_Boolean()

Definition at line 312 of file int_api.h.

#define ENSURES_EXT (   x,
 
)    if( !( x ) ) retIntError_Ext( y )

Definition at line 314 of file int_api.h.

#define ENSURES_N (   x)    if( !( x ) ) retIntError_Null()

Definition at line 311 of file int_api.h.

#define ENSURES_S (   x)    if( !( x ) ) retIntError_Stream( stream )

Definition at line 315 of file int_api.h.

#define ENSURES_V (   x)    if( !( x ) ) retIntError_Void()

Definition at line 313 of file int_api.h.

#define ENVELOPE_ERRINFO   &envelopeInfoPtr->errorInfo

Definition at line 442 of file int_api.h.

#define HASH_DATA_SIZE   16

Definition at line 986 of file int_api.h.

#define HWCAP_FLAG_AES   0x40 /* Intel AES instruction support */

Definition at line 149 of file int_api.h.

#define HWCAP_FLAG_MONTMUL   0x10 /* VIA bignum instruction support */

Definition at line 147 of file int_api.h.

#define HWCAP_FLAG_NONE   0x00 /* No special HW capabilities */

Definition at line 142 of file int_api.h.

#define HWCAP_FLAG_RDRAND   0x80 /* Intel RDRAND instruction support */

Definition at line 150 of file int_api.h.

#define HWCAP_FLAG_RDTSC   0x01 /* x86 RDTSC instruction support */

Definition at line 143 of file int_api.h.

#define HWCAP_FLAG_TRNG   0x20 /* AMD Geode LX TRNG MSR support */

Definition at line 148 of file int_api.h.

#define HWCAP_FLAG_XCRYPT   0x04 /* VIA XCRYPT instruction support */

Definition at line 145 of file int_api.h.

#define HWCAP_FLAG_XSHA   0x08 /* VIA XSHA instruction support */

Definition at line 146 of file int_api.h.

#define HWCAP_FLAG_XSTORE   0x02 /* VIA XSTORE instruction support */

Definition at line 144 of file int_api.h.

#define initSigParams (   sigParams)
Value:
{ \
memset( ( sigParams ), 0, sizeof( SIGPARAMS ) ); \
( sigParams )->iAuthAttr = ( sigParams )->iTspSession = \
( sigParams )->iSecondHash = CRYPT_ERROR; \
}

Definition at line 1039 of file int_api.h.

#define initVarStruct (   structure,
  structureType,
  size 
)
Value:
memset( structure, 0, sizeof( structureType ) ); \
structure->value = structure->storage; \
structure->storageSize = size

Definition at line 903 of file int_api.h.

#define insertDoubleListElement (   listHead,
  insertPoint,
  newElement 
)    insertDoubleListElements( listHead, insertPoint, newElement, newElement )

Definition at line 643 of file int_api.h.

#define insertDoubleListElements (   listHead,
  insertPoint,
  newStartElement,
  newEndElement 
)

Definition at line 609 of file int_api.h.

#define insertSingleListElement (   listHead,
  insertPoint,
  newElement 
)
Value:
{ \
if( *( listHead ) == NULL ) \
{ \
/* It's an empty list, make this the new list */ \
*( listHead ) = ( newElement ); \
} \
else \
{ \
if( ( insertPoint ) == NULL ) \
{ \
/* We're inserting at the start of the list, make this the \
new first element */ \
( newElement )->next = *( listHead ); \
*( listHead ) = ( newElement ); \
} \
else \
{ \
/* Insert the element in the middle or the end of the list */ \
( newElement )->next = ( insertPoint )->next; \
( insertPoint )->next = ( newElement ); \
} \
} \
}

Definition at line 585 of file int_api.h.

#define INTERNAL_ERROR   0 /* Symbolic define for assertion failure */

Definition at line 269 of file int_api.h.

#define isBadPassword (   password)
Value:
( !isReadPtrConst( password, 1 ) || \
( strlen( password ) < 1 ) )

Definition at line 37 of file int_api.h.

#define KEYSET_ERRINFO   &keysetInfoPtr->errorInfo

Definition at line 443 of file int_api.h.

#define NETSTREAM_ERRINFO   &netStream->errorInfo

Definition at line 446 of file int_api.h.

#define REQUIRES (   x)    if( !( x ) ) retIntError()

Definition at line 303 of file int_api.h.

#define REQUIRES_B (   x)    if( !( x ) ) retIntError_Boolean()

Definition at line 305 of file int_api.h.

#define REQUIRES_EXT (   x,
 
)    if( !( x ) ) retIntError_Ext( y )

Definition at line 307 of file int_api.h.

#define REQUIRES_N (   x)    if( !( x ) ) retIntError_Null()

Definition at line 304 of file int_api.h.

#define REQUIRES_S (   x)    if( !( x ) ) retIntError_Stream( stream )

Definition at line 308 of file int_api.h.

#define REQUIRES_V (   x)    if( !( x ) ) retIntError_Void()

Definition at line 306 of file int_api.h.

#define retExt (   status,
  extStatus 
)    return status

Definition at line 425 of file int_api.h.

#define retExt_IntError (   status,
  extStatus 
)
Value:
{ \
assert( INTERNAL_ERROR ); \
return( status ); \
}

Definition at line 431 of file int_api.h.

#define retExtArg (   status,
  extStatus 
)    return status

Definition at line 426 of file int_api.h.

#define retExtErr (   status,
  extStatus 
)    return status

Definition at line 429 of file int_api.h.

#define retExtErrAlt (   status,
  extStatus 
)    return status

Definition at line 430 of file int_api.h.

#define retExtObj (   status,
  extStatus 
)    return status

Definition at line 427 of file int_api.h.

#define retExtStr (   status,
  extStatus 
)    return status

Definition at line 428 of file int_api.h.

#define retIntError ( )
Value:
{ \
assert( INTERNAL_ERROR ); \
return( CRYPT_ERROR_INTERNAL ); \
}

Definition at line 270 of file int_api.h.

#define retIntError_Boolean ( )
Value:
{ \
assert( INTERNAL_ERROR ); \
return( FALSE ); \
}

Definition at line 280 of file int_api.h.

#define retIntError_Ext (   value)
Value:
{ \
assert( INTERNAL_ERROR ); \
return( value ); \
}

Definition at line 290 of file int_api.h.

#define retIntError_Null ( )
Value:
{ \
assert( INTERNAL_ERROR ); \
return( NULL ); \
}

Definition at line 275 of file int_api.h.

#define retIntError_Stream (   stream)
Value:
{ \
assert( INTERNAL_ERROR ); \
return( sSetError( stream, CRYPT_ERROR_INTERNAL ) ); \
}

Definition at line 295 of file int_api.h.

#define retIntError_Void ( )
Value:
{ \
assert( INTERNAL_ERROR ); \
return; \
}

Definition at line 285 of file int_api.h.

#define SESSION_ERRINFO   &sessionInfoPtr->errorInfo

Definition at line 444 of file int_api.h.

#define setErrorString (   errorInfoPtr,
  string,
  stringLength 
)    ;

Definition at line 376 of file int_api.h.

#define setX509FormatInfo (   formatInfo,
  formatTag,
  formatIsExplicit 
)
Value:
memset( formatInfo, 0, sizeof( X509SIG_FORMATINFO ) ); \
( formatInfo )->tag = ( formatTag ); \
( formatInfo )->isExplicit = ( formatIsExplicit )

Definition at line 1166 of file int_api.h.

#define sizeofVarStruct (   structure,
  structureType 
)    ( sizeof( structureType ) + structure->storageSize )

Definition at line 916 of file int_api.h.

#define STREAM_ERRINFO   stream->errorInfo

Definition at line 445 of file int_api.h.

Typedef Documentation

Definition at line 716 of file int_api.h.

Definition at line 955 of file int_api.h.

typedef BYTE HASHINFO[(27 *4)+8]

Definition at line 952 of file int_api.h.

typedef IN_LENGTH_HASH const int IN_BUFFER(inLength) const void *inBuffer

Definition at line 967 of file int_api.h.

Definition at line 968 of file int_api.h.

typedef BYTE MEMPOOL_STATE[32]

Definition at line 860 of file int_api.h.

Definition at line 966 of file int_api.h.

typedef CHECK_RETVAL_FNPTR STDC_NONNULL_ARG((1)) int(*READCHARFUNCTION)(INOUT void *streamPtr)

Definition at line 96 of file int_api.h.

Enumeration Type Documentation

enum ATTR_TYPE
Enumerator:
ATTR_NONE 
ATTR_CURRENT 
ATTR_PREV 
ATTR_NEXT 
ATTR_LAST 

Definition at line 707 of file int_api.h.

enum HASH_STATE
Enumerator:
HASH_STATE_NONE 
HASH_STATE_START 
HASH_STATE_CONTINUE 
HASH_STATE_END 
HASH_STATE_LAST 

Definition at line 928 of file int_api.h.

Enumerator:
KEYSIZE_CHECK_NONE 
KEYSIZE_CHECK_PKC 
KEYSIZE_CHECK_ECC 
KEYSIZE_CHECK_LAST 
KEYSIZE_CHECK_SPECIAL 
KEYSIZE_CHECK_LAST_SPECIAL 

Definition at line 1233 of file int_api.h.

Enumerator:
SYSVAR_NONE 
SYSVAR_HWCAP 
SYSVAR_LAST 

Definition at line 128 of file int_api.h.

Function Documentation

CHECK_RETVAL_BOOL BOOLEAN algoAvailable ( IN_ALGO const CRYPT_ALGO_TYPE  cryptAlgo)

Definition at line 146 of file int_api.c.

CHECK_RETVAL_RANGE ( ,
32767   
)

Definition at line 223 of file int_api.c.

CHECK_RETVAL_STRINGOP ( strLen  ) const

Definition at line 43 of file int_string.c.

time_t getApproxTime ( void  )

Definition at line 46 of file int_time.c.

time_t getReliableTime ( IN_HANDLE const CRYPT_HANDLE  cryptHandle)

Definition at line 59 of file int_time.c.

CHECK_RETVAL int getSysVar ( const SYSVAR_TYPE  type)

Definition at line 2016 of file os_spec.c.

CHECK_RETVAL long getTickCount ( long  startTime)
time_t getTime ( void  )

Definition at line 33 of file int_time.c.

CHECK_RETVAL OUT_INT_SHORT_Z int IN_ARRAY ( mapTblSize  ) const
CHECK_RETVAL IN_BUFFER ( attributeLength  ) const
CHECK_RETVAL IN_BUFFER ( strLen  ) const
CHECK_RETVAL * destLen char OUT_LENGTH_Z int IN_BUFFER ( srcLen  ) const
CHECK_RETVAL * encValLen char OUT_LENGTH_SHORT_Z int IN_BUFFER ( valueLen  ) const
CHECK_RETVAL IN_BUFFER ( memPoolSize  )
IN_LENGTH_HASH const int IN_BUFFER ( dataLength  ) const
CHECK_RETVAL_BOOL IN_BUFFER ( length  ) const
CHECK_RETVAL_BOOL IN_HANDLE const CRYPT_HANDLE IN_ENUM ( CRYPT_KEYID  ) const
CHECK_RETVAL IN_HANDLE const CRYPT_CERTIFICATE IN_ENUM ( CRYPT_CERTFORMAT  ) const
CHECK_RETVAL * signatureLength void IN_LENGTH_Z const int OUT_LENGTH_Z int IN_ENUM ( CRYPT_FORMAT  ) const
CHECK_RETVAL OUT_LENGTH_Z int IN_ENUM_OPT ( CRYPT_CERTTYPE  ) const
CHECK_RETVAL * destLen void OUT_LENGTH_Z int IN_ENUM_OPT ( CRYPT_CERTFORMAT  ) const
CHECK_RETVAL_PTR IN GETATTRFUNCTION IN_ENUM_OPT ( CRYPT_ATTRIBUTE  ) const
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
CHECK_RETVAL_BOOL IN_HANDLE const CRYPT_HANDLE IN_LENGTH_SHORT const int IN_FLAGS_Z ( KEYMGMT  ) const
CHECK_RETVAL IN_HANDLE const CRYPT_HANDLE IN_LENGTH_FIXED ( CRYPT_IATTRIBUTE_RANDOM_NONCE  ) const
CHECK_RETVAL *destLen void OUT_LENGTH_Z int IN_LENGTH_MIN ( 10  ) const
CHECK_RETVAL IN_LENGTH_SHORT_MIN ( MIN_KEYSIZE  ) const
CHECK_RETVAL INOUT void IN_LENGTH_SHORT_MIN ( 16  ) const
new
CHECK_RETVAL_BOOL IN_LENGTH_SHORT_MIN ( 10  ) const
CHECK_RETVAL * encValLen char OUT_LENGTH_SHORT_Z int IN_LENGTH_SHORT_MIN ( ) const
CHECK_RETVAL IN_LENGTH_SHORT_MIN ( 64  ) const
CHECK_RETVAL IN_LENGTH_SHORT const int OUT_INT_Z int IN_RANGE ( ,
100   
) const
CHECK_RETVAL IN_LENGTH_SHORT const int OUT_INT_Z int IN_RANGE ( minValue  ,
MAX_INTLENGTH   
) const
CHECK_RETVAL IN_HANDLE const CRYPT_HANDLE IN_RANGE ( ,
1024   
) const
CHECK_RETVAL * encValLen char OUT_LENGTH_SHORT_Z int IN_RANGE ( ,
 
) const
CHECK_RETVAL int initSysVars ( void  )

Definition at line 2004 of file os_spec.c.

CHECK_RETVAL_BOOL BOOLEAN isStrongerHash ( IN_ALGO const CRYPT_ALGO_TYPE  algorithm1,
IN_ALGO const CRYPT_ALGO_TYPE  algorithm2 
)

Definition at line 173 of file int_api.c.

CHECK_RETVAL INOUT void OUT_BUFFER ( lineBufferMaxLen  ,
lineBufferSize 
)
CHECK_RETVAL IN_LENGTH const int OUT_ENUM_OPT ( CRYPT_CERTFORMAT  )
CHECK_RETVAL int retExtArgFn ( IN_ERROR const int  status,
OUT ERROR_INFO errorInfoPtr,
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 int retExtErrFn ( IN_ERROR const int  status,
OUT ERROR_INFO errorInfoPtr,
const ERROR_INFO existingErrorInfoPtr,
FORMAT_STRING const char *  format,
  ... 
)
CHECK_RETVAL int retExtFn ( IN_ERROR const int  status,
OUT ERROR_INFO errorInfoPtr,
FORMAT_STRING const char *  format,
  ... 
)
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 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,
  ... 
)
RETVAL_RANGE ( MAX_ERROR  ,
0xFFFF   
) const
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (3)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1)  ) const
CHECK_RETVAL STDC_NONNULL_ARG ( (2, 3)  ) const
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2, 3, 5)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (2, 4)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (2, 3, 5)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (2, 3, 4)  )
CHECK_RETVAL_BOOL STDC_NONNULL_ARG ( (1, 4)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 3)  ) const
CHECK_RETVAL STDC_NONNULL_ARG ( (2)  ) const
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 3, 4)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (3, 4)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (3, 5, 7)  )
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 * dataLength void OUT_LENGTH_SHORT_Z int IN TYPECAST ( BIGNUM ) const

Variable Documentation

Definition at line 734 of file int_api.h.

CHECK_RETVAL IN_LENGTH_SHORT_Z const int attributeLength

Definition at line 20 of file int_api.h.

Definition at line 750 of file int_api.h.

Definition at line 498 of file int_api.h.

CHECK_RETVAL * bufSize void* buffer

Definition at line 1204 of file int_api.h.

Definition at line 1204 of file int_api.h.

CHECK_RETVAL * bufSize void IN_LENGTH_SHORT_Z const int OUT_LENGTH_SHORT_Z int* bufSize

Definition at line 1204 of file int_api.h.

Definition at line 1209 of file int_api.h.

Definition at line 1211 of file int_api.h.

Definition at line 1213 of file int_api.h.

Definition at line 1215 of file int_api.h.

Definition at line 1204 of file int_api.h.

Definition at line 510 of file int_api.h.

Definition at line 498 of file int_api.h.

CHECK_RETVAL * dataLength void* data

Definition at line 1253 of file int_api.h.

CHECK_RETVAL * dataLength void OUT_LENGTH_SHORT_Z int* dataLength

Definition at line 526 of file int_api.h.

CHECK_RETVAL OUT_LENGTH_Z int* decodedLength

Definition at line 546 of file int_api.h.

Definition at line 479 of file int_api.h.

CHECK_RETVAL * destLen void* dest

Definition at line 22 of file int_api.h.

CHECK_RETVAL * destLen void OUT_LENGTH_Z int* destLen

Definition at line 538 of file int_api.h.

CHECK_RETVAL * destLength void IN_LENGTH_SHORT_Z const int OUT_LENGTH_SHORT_Z int* destLength

Definition at line 22 of file int_api.h.

CHECK_RETVAL * destLength void IN_LENGTH_SHORT_Z const int destMaxLength

Definition at line 22 of file int_api.h.

CHECK_RETVAL OUT_INT_SHORT_Z int* destValue

Definition at line 80 of file int_api.h.

IN_INT const int duration

Definition at line 798 of file int_api.h.

CHECK_RETVAL OUT_LENGTH_Z int* encodedLength

Definition at line 532 of file int_api.h.

CHECK_RETVAL * encryptedKeyLength void* encryptedKey

Definition at line 1081 of file int_api.h.

CHECK_RETVAL * encryptedKeyLength void IN_LENGTH_Z const int OUT_LENGTH_Z int* encryptedKeyLength

Definition at line 1073 of file int_api.h.

CHECK_RETVAL * encryptedKeyLength void IN_LENGTH_Z const int encryptedKeyMaxLength

Definition at line 1081 of file int_api.h.

CHECK_RETVAL * encValLen char* encVal

Definition at line 562 of file int_api.h.

CHECK_RETVAL * encValLen char OUT_LENGTH_SHORT_Z int* encValLen

Definition at line 564 of file int_api.h.

Definition at line 573 of file int_api.h.

Definition at line 1067 of file int_api.h.

Definition at line 228 of file int_api.h.

Definition at line 1178 of file int_api.h.

Definition at line 728 of file int_api.h.

Definition at line 1178 of file int_api.h.

Definition at line 972 of file int_api.h.

IN_INT_SHORT_Z const int OUT_PTR HASHFUNCTION_ATOMIC* hashFunctionAtomic

Definition at line 977 of file int_api.h.

IN_LENGTH_HASH const int hashMaxLength

Definition at line 993 of file int_api.h.

IN_INT_SHORT_Z const int OUT_PTR HASHFUNCTION_ATOMIC OUT_OPT_LENGTH_SHORT_Z int * hashOutputSize

Definition at line 972 of file int_api.h.

IN_INT_SHORT_Z const int hashParams

Definition at line 972 of file int_api.h.

Definition at line 463 of file int_api.h.

Definition at line 479 of file int_api.h.

Definition at line 515 of file int_api.h.

Definition at line 1086 of file int_api.h.

Definition at line 1067 of file int_api.h.

Definition at line 1059 of file int_api.h.

Definition at line 1076 of file int_api.h.

Definition at line 479 of file int_api.h.

Definition at line 1076 of file int_api.h.

Definition at line 1076 of file int_api.h.

Definition at line 1184 of file int_api.h.

Definition at line 1067 of file int_api.h.

Definition at line 1059 of file int_api.h.

Definition at line 467 of file int_api.h.

Definition at line 1014 of file int_api.h.

CHECK_RETVAL INOUT void OUT_LENGTH_SHORT_Z int* lineBufferSize

Definition at line 105 of file int_api.h.

Definition at line 105 of file int_api.h.

Definition at line 82 of file int_api.h.

Definition at line 1246 of file int_api.h.

Definition at line 1246 of file int_api.h.

IN void* memblock

Definition at line 869 of file int_api.h.

Definition at line 1246 of file int_api.h.

Definition at line 252 of file int_api.h.

Definition at line 1178 of file int_api.h.

Definition at line 488 of file int_api.h.

CHECK_RETVAL * signatureLength void* signature

Definition at line 1054 of file int_api.h.

CHECK_RETVAL IN_LENGTH_SHORT const int signatureLength

Definition at line 1054 of file int_api.h.

CHECK_RETVAL * signatureLength void IN_LENGTH_Z const int signatureMaxLength

Definition at line 1054 of file int_api.h.

CHECK_RETVAL * signedObjectLength void* signedObject

Definition at line 1174 of file int_api.h.

CHECK_RETVAL IN_LENGTH const int signedObjectLength

Definition at line 1174 of file int_api.h.

CHECK_RETVAL * signedObjectLength void IN_LENGTH_Z const int signedObjectMaxLength

Definition at line 1174 of file int_api.h.

Definition at line 1059 of file int_api.h.

Definition at line 867 of file int_api.h.

Definition at line 26 of file int_api.h.

const ERROR_INFO* srcErrorInfoPtr

Definition at line 380 of file int_api.h.

Definition at line 248 of file int_api.h.

Definition at line 529 of file int_api.h.

CHECK_RETVAL INOUT void* streamPtr

Definition at line 101 of file int_api.h.

strLen BYTE* string

Definition at line 220 of file int_api.h.

Definition at line 220 of file int_api.h.

Definition at line 220 of file int_api.h.

Definition at line 806 of file int_api.h.

Definition at line 569 of file int_api.h.

CHECK_RETVAL * valueLen BYTE OUT_LENGTH_SHORT_Z int* valueLen

Definition at line 571 of file int_api.h.