|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <stdio.h>#include <stdarg.h>#include "windef.h"#include "winbase.h"#include "winnls.h"#include "widltypes.h"#include "hash.h"
Go to the source code of this file.
Macros | |
| #define | DWORD2BE(x) ((((x) >> 24) & 0xff) | (((x) >> 8) & 0xff00) | (((x) << 8) & 0xff0000) | (((x) << 24) & 0xff000000)) |
| #define | rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) |
| #define | blk0(i) (block[i] = DWORD2BE(block[i])) |
| #define | blk1(i) (block[i&15] = rol(block[(i+13)&15]^block[(i+8)&15]^block[(i+2)&15]^block[i&15],1)) |
| #define | f1(x, y, z) (z^(x&(y^z))) |
| #define | f2(x, y, z) (x^y^z) |
| #define | f3(x, y, z) ((x&y)|(z&(x|y))) |
| #define | f4(x, y, z) (x^y^z) |
| #define | R0(v, w, x, y, z, i) z+=f1(w,x,y)+blk0(i)+0x5A827999+rol(v,5);w=rol(w,30); |
| #define | R1(v, w, x, y, z, i) z+=f1(w,x,y)+blk1(i)+0x5A827999+rol(v,5);w=rol(w,30); |
| #define | R2(v, w, x, y, z, i) z+=f2(w,x,y)+blk1(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30); |
| #define | R3(v, w, x, y, z, i) z+=f3(w,x,y)+blk1(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30); |
| #define | R4(v, w, x, y, z, i) z+=f4(w,x,y)+blk1(i)+0xCA62C1D6+rol(v,5);w=rol(w,30); |
Functions | |
| unsigned int | lhash_val_of_name_sys (syskind_t skind, int lcid, const char *lpStr) |
| static void | sha1_transform (struct sha1_context *ctx) |
| void | sha1_init (struct sha1_context *ctx) |
| void | sha1_update (struct sha1_context *ctx, const char *data, size_t data_size) |
| void | sha1_finalize (struct sha1_context *ctx, unsigned int result[5]) |
Variables | |
| static const unsigned char | Lookup_16 [128 *3] |
| static const unsigned char | Lookup_32 [128 *3] |
| static const unsigned char | Lookup_48 [128 *3] |
| static const unsigned char | Lookup_64 [128 *3] |
| static const unsigned char | Lookup_80 [128 *3] |
| static const unsigned char | Lookup_112 [128 *3] |
| static const unsigned char | Lookup_128 [128 *3] |
| static const unsigned char | Lookup_144 [128 *3] |
| static const unsigned char | Lookup_160 [128 *3] |
| static const unsigned char | Lookup_176 [128 *3] |
| static const unsigned char | Lookup_208 [128 *3] |
| static const unsigned char | Lookup_224 [128 *3] |
Definition at line 511 of file hash.c.
Referenced by ctl2_encode_name().
| void sha1_finalize | ( | struct sha1_context * | ctx, |
| unsigned int | result[5] | ||
| ) |
Definition at line 703 of file hash.c.
Referenced by compute_interface_signature_uuid().
| void sha1_init | ( | struct sha1_context * | ctx | ) |
|
static |
Definition at line 622 of file hash.c.
Referenced by sha1_update().
Definition at line 678 of file hash.c.