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
12
#include "
Base/Interfaces/BaseException.h
"
13
#include "
Base/Base/ReturnString.h
"
14
#include "
Encryptor.h
"
15
#include "
DataType/DataType/Binary.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.
23
}
HashingVersion
;
24
26
class
DLL_ENCRYPTOR_EXIM
Hash
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
48
class
BadHashException
:
public
MBase::BaseException
{};
49
class
BadDataException
:
public
MBase::BaseException
{};
50
51
}
//namespace
52
53
#endif //Encryptor_Hash_h
WCHAR
wchar_t WCHAR
Definition:
PDCwchar.h:23
MEncryptor::BadHashException
Definition:
Hash.h:48
MEncryptor
Definition:
EncryptorDecryptor.h:22
MEncryptor::BadDataException
Definition:
Hash.h:49
ReturnString.h
MBase::ReturnWString
Definition:
ReturnString.h:85
MEncryptor::HashingVersionHighest
Definition:
Hash.h:22
Encryptor.h
MBase::Message
Definition:
Message.h:32
DLL_ENCRYPTOR_EXIM
#define DLL_ENCRYPTOR_EXIM
M8Encryp2.Dll export definition.
Definition:
Encryptor.h:22
MEncryptor::Hash
Hash is a one way encryption that uses RIPEMD160 hashing algorithm.
Definition:
Hash.h:26
MEncryptor::HashingVersion
HashingVersion
Definition:
Hash.h:19
Binary.h
BaseException.h
MEncryptor::RIPEMD160
Definition:
Hash.h:21
Users
vvitarello
Desktop
MobileSDKSourceFiles
Encryptor
Encryptor
Hash.h
Generated by
1.8.14