Mobile API Reference  MicroStrategy 2019
Hash.h
Go to the documentation of this file.
1 //==============================================================================================
2 // FILENAME : Hash.h
3 // AUTHOR : Yuan Ding
4 // CREATION : 11/15/2001
5 // Copyright (C) MicroStrategy Incorporated 1999
6 // All Rights Reserved
7 //==============================================================================================
8 
9 #ifndef Encryptor_Hash_h
10 #define Encryptor_Hash_h
11 
13 #include "Base/Base/ReturnString.h"
14 #include "Encryptor.h"
16 
17 namespace MEncryptor {
18 
19 typedef enum
20 {
21  RIPEMD160 = 0,
22  HashingVersionHighest // The highest hashing version. Always insert new hashing version before this.
24 
27 {
28 public:
29 
31 
38  static MBase::ReturnWString HashData(const WCHAR* ipcData, HashingVersion inVersion);
39  //xfan. 1/15/08. hash with fixed length. used in AES
40  //(static MDataType::Binary* HashData(const WCHAR* ipcData,HashingVersion inVersion, unsigned int iLen);
42 
45  static HashingVersion GetHashVersion(const WCHAR* ipcHashedData);
46 };
47 
50 
51 }//namespace
52 
53 #endif //Encryptor_Hash_h
wchar_t WCHAR
Definition: PDCwchar.h:23
Definition: Hash.h:48
Definition: EncryptorDecryptor.h:22
Definition: Hash.h:49
Definition: ReturnString.h:85
Definition: Message.h:32
#define DLL_ENCRYPTOR_EXIM
M8Encryp2.Dll export definition.
Definition: Encryptor.h:22
Hash is a one way encryption that uses RIPEMD160 hashing algorithm.
Definition: Hash.h:26
HashingVersion
Definition: Hash.h:19
Definition: Hash.h:21