Mobile API Reference  MicroStrategy 2019
HexEncoderHelper.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : HexEncoderHelper.h
3 // AUTHOR : Yuan Ding
4 // CREATION : 09/12/2003
5 // Copyright (C) MicroStrategy Incorporated 1999
6 // All Rights Reserved
7 //==============================================================================================
8 
9 #ifndef MEncryptor_HexEncoderHelper_h
10 #define MEncryptor_HexEncoderHelper_h
11 
12 namespace MDataType {
13  class Binary;
14 }
15 
16 namespace MEncryptor {
17 
18  //xfan. 1/21/08. added for AES
20  unsigned int inEncryptionLevel,
21  unsigned int inHashVersion,
22  bool ibReverseHighLow = false,
23  bool ibUpperCase = true);
24 
25 MDataType::Binary* HexDecodeWithEncryptionLevel(const WCHAR* ipcData, bool ibReverseHighLow);
26 
29  unsigned int inVersion,
30  bool ibReverseHighLow = false,
31  bool ibUpperCase = true);
32 
34 bool ctoi(unsigned char iDigitChar, unsigned char& orDigit);
35 
37 WCHAR* hHexEncode(const MDataType::Binary* ipcBinaryData,
38  bool ibReverseHighLow = false,
39  bool ibUpperCase = true);
40 
41 }// namespace
42 
43 #endif //MEncryptor_HexEncoderHelper_h
wchar_t WCHAR
Definition: PDCwchar.h:23
WCHAR * hHexEncodeWithSignature(const MDataType::Binary *ipcData, unsigned int inVersion, bool ibReverseHighLow=false, bool ibUpperCase=true)
The actual implementation of the encoding algorithm.
WCHAR * hHexEncode(const MDataType::Binary *ipcBinaryData, bool ibReverseHighLow=false, bool ibUpperCase=true)
Actually encode the given binary to its Hex representation.
MDataType::Binary represents binary data.
Definition: Binary.h:33
Definition: EncryptorDecryptor.h:22
WCHAR * hHexEncodeWithEncryptionLevel(const MDataType::Binary *ipcData, unsigned int inEncryptionLevel, unsigned int inHashVersion, bool ibReverseHighLow=false, bool ibUpperCase=true)
Definition: BigDecimal.h:18
bool ctoi(unsigned char iDigitChar, unsigned char &orDigit)
Converts a character to a number.
MDataType::Binary * HexDecodeWithEncryptionLevel(const WCHAR *ipcData, bool ibReverseHighLow)