-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstdafx.h
54 lines (45 loc) · 1.78 KB
/
stdafx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#pragma once
// The following macros define the minimum required platform. The minimum required platform
// is the earliest version of Windows, Internet Explorer etc. that has the necessary features to run
// your application. The macros work by enabling all features available on platform versions up to and
// including the version specified.
// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef _WIN32_WINNT // Specifies that the minimum required platform is Windows Vista.
#define _WIN32_WINNT 0x0600 // Change this to the appropriate value to target other versions of Windows.
#endif
typedef unsigned __int64 uint64_t;
typedef unsigned int uint32_t;
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;
#include <stdio.h>
#include <tchar.h>
#include <iostream>
#include <limits.h>
#include <vector>
#include <list>
#include <set>
#include <map>
#define GET64(hi,lo) ((((uint64_t)(hi))<<32LL)|((uint64_t)(lo)))
#define LSB52(x) (x & 0x000FFFFFFFFFFFFFLL)
#define LSB48(x) (x & 0x0000FFFFFFFFFFFFLL)
#define LSB40(x) (x & 0x000000FFFFFFFFFFLL)
#define LSB32(x) (x & 0xFFFFFFFFLL)
#define LSB30(x) (x & 0x3FFFFFFFLL)
#define LSB28(x) (x & 0x0FFFFFFFLL)
#define LSB26(x) (x & 0x03FFFFFFLL)
#define LSB24(x) (x & 0x00FFFFFFLL)
#define LSB16(x) (x & 0x0000FFFFLL)
void DisplayMessageDigest(uint32_t sha1hash[5]);
float twoPow(uint8_t pow);
void Test1();
void Test2();
void Test3();
void Test4();
void Test5();
void Test6();
void Test7();