CertCompareIntegerBlob
This function compares two integer BLOB structures to determine whether they represent equal numeric values. Before doing the comparison, most significant bytes with a value of 0x00 are removed from a positive number. Positive means that the most significant bit in the next nonzero byte is not set.
Most significant bytes with a value of 0xFF are removed from a negative number. Negative means that the most significant bit in the next non-0xFF byte is set. This produces the unique representation of that integer. The following table shows examples of this representation.
Original bytes | Reduced form |
---|---|
0xFFFFFF88 | 0xFF88 |
0xFF23 | 0xFF23 |
0x007F | 0x7F |
0x00000080 | 0x80 |
Multiple-byte integers are treated as little-endian. The least significant byte is pbData[0]. The most significant byte is pbData[cbData - 1]; that is, 0xFFFFFF88 is stored in four bytes as {0x88, 0xFF, 0xFF, 0xFF}.
BOOL WINAPI CertCompareIntegerBlob(
PCRYPT_INTEGER_BLOB pInt1,
PCRYPT_INTEGER_BLOB pInt2
);
Parameters
- pInt1
[in] Pointer to a CRYPT_INTEGER_BLOB structure containing the first integer in the comparison. - pInt2
[in] Pointer to a CRYPT_INTEGER_BLOB structure containing the second integer in the comparison.
Return Values
If the representations of the integer BLOB structures are identical and the function succeeds, the return value is nonzero (TRUE).
If the function fails, the return value is zero (FALSE).
For extended error information, call the GetLastError function.
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 3.0 or later | Wincrypt.h | Crypt32.lib |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
Last updated on Tuesday, July 13, 2004
© 1992-2000 Microsoft Corporation. All rights reserved.