Process Hacker
Main Page
Namespaces
Data Structures
Files
File List
Globals
md5.h
Go to the documentation of this file.
1
#ifndef _MD5_H_
2
#define _MD5_H_
3
4
#include <stdint.h>
5
6
typedef
struct
{
7
PH_HASH_CONTEXT
hc
;
8
}
md5_context
;
9
10
__forceinline
void
md5_starts
(
md5_context
*ctx)
11
{
12
PhInitializeHash
(&ctx->
hc
,
Md5HashAlgorithm
);
13
}
14
15
__forceinline
void
md5_update
(
md5_context
*ctx,
const
uint8_t *input, uint32_t length)
16
{
17
PhUpdateHash
(&ctx->
hc
, (PVOID)input, length);
18
}
19
20
__forceinline
void
md5_finish
(
md5_context
*ctx, uint8_t digest[16])
21
{
22
if
(!
PhFinalHash
(&ctx->
hc
, digest, 16, NULL))
23
PhRaiseStatus
(STATUS_INTERNAL_ERROR);
24
}
25
26
#endif
/* _MD5_H_ */
plugins
ExtendedNotifications
gntp-send
md5.h
Generated by
1.8.2