|
#define | __STDC_WANT_LIB_EXT1__ 1 |
|
#define | mgetLong(memPtr) |
|
#define | mputLong(memPtr, data) |
|
#define | setDLPParams(dlpDataPtr, dataIn, dataInLen, dataOut, dataOutLen) |
|
#define | UNUSED_ARG(arg) ( ( arg ) = ( arg ) ) |
|
#define | min(a, b) ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) ) |
|
#define | max(a, b) ( ( ( a ) > ( b ) ) ? ( a ) : ( b ) ) |
|
#define | bitsToBytes(bits) ( ( ( bits ) + 7 ) >> 3 ) |
|
#define | bytesToBits(bytes) ( ( bytes ) << 3 ) |
|
#define | MKDATA(x) ( ( unsigned char * ) ( x ) ) |
|
#define | roundUp(size, roundSize) ( ( ( size ) + ( ( roundSize ) - 1 ) ) & ~( ( roundSize ) - 1 ) ) |
|
#define | zeroise(memory, size) memset( memory, 0, size ) |
|
#define | isHandleRangeValid(handle) ( ( handle ) > NO_SYSTEM_OBJECTS - 1 && ( handle ) < MAX_OBJECTS ) |
|
#define | needsIV(mode) |
|
#define | isStreamCipher(algorithm) ( ( algorithm ) == CRYPT_ALGO_RC4 ) |
|
#define | isWeakCryptAlgo(algorithm) |
|
#define | isWeakHashAlgo(algorithm) ( ( algorithm ) == CRYPT_ALGO_MD5 ) |
|
#define | isWeakMacAlgo(algorithm) ( ( algorithm ) == CRYPT_ALGO_HMAC_MD5 ) |
|
#define | isConvAlgo(algorithm) |
|
#define | isPkcAlgo(algorithm) |
|
#define | isHashAlgo(algorithm) |
|
#define | isMacAlgo(algorithm) |
|
#define | isSpecialAlgo(algorithm) ( ( algorithm ) == CRYPT_IALGO_GENERIC_SECRET ) |
|
#define | isSigAlgo(algorithm) |
|
#define | isCryptAlgo(algorithm) ( ( algorithm ) == CRYPT_ALGO_RSA || ( algorithm ) == CRYPT_ALGO_ELGAMAL ) |
|
#define | isKeyxAlgo(algorithm) ( ( algorithm ) == CRYPT_ALGO_DH || ( algorithm ) == CRYPT_ALGO_ECDH ) |
|
#define | isDlpAlgo(algorithm) |
|
#define | isEccAlgo(algorithm) ( ( algorithm ) == CRYPT_ALGO_ECDSA || ( algorithm ) == CRYPT_ALGO_ECDH ) |
|
#define | isParameterisedConvAlgo(algorithm) ( ( algorithm ) == CRYPT_ALGO_AES ) |
|
#define | isParameterisedHashAlgo(algorithm) ( ( algorithm ) == CRYPT_ALGO_SHA2 || ( algorithm ) == CRYPT_ALGO_SHAng ) |
|
#define | isParameterisedMacAlgo(algorithm) |
|
#define | isDataError(status) |
|
#define | isShortPKCKey(keySize) |
|
#define | isShortECCKey(keySize) |
|
#define | rangeCheck(start, length, totalLength) |
|
#define | rangeCheckZ(start, length, totalLength) |
|
#define | isReadPtr(ptr, size) ( ( ptr ) != NULL && ( size ) > 0 ) |
|
#define | isWritePtr(ptr, size) ( ( ptr ) != NULL && ( size ) > 0 ) |
|
#define | isReadPtrConst(ptr, type) ( ( ptr ) != NULL ) |
|
#define | isWritePtrConst(ptr, type) ( ( ptr ) != NULL ) |
|
#define | byteToInt(x) ( ( unsigned char ) ( x ) ) |
|
#define | intToLong(x) ( ( unsigned int ) ( x ) ) |
|
#define | sizeToInt(x) ( ( unsigned int ) ( x ) ) |
|
#define | intToByte(x) ( ( unsigned char ) ( x ) ) |
|
#define | clearErrorInfo(objectInfoPtr) |
|
#define | setErrorInfo(objectInfoPtr, locus, type) |
|