ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

crypt_sha.c File Reference
#include <advapi32.h>

Go to the source code of this file.

Data Structures

struct  PSHA_CTX

Defines

#define rol(value, bits)   (((value) << (bits)) | ((value) >> (32 - (bits))))
#define DWORD2BE(x)   (((x) >> 24) & 0xff) | (((x) >> 8) & 0xff00) | (((x) << 8) & 0xff0000) | (((x) << 24) & 0xff000000);
#define blk0(i)   (Block[i] = (rol(Block[i],24)&0xFF00FF00)|(rol(Block[i],8)&0x00FF00FF))
#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);

Typedefs

typedef struct SHA_CTXPSHA_CTX

Functions

static void SHA1Transform (ULONG State[5], UCHAR Buffer[64])
VOID WINAPI A_SHAInit (PSHA_CTX Context)
VOID WINAPI A_SHAUpdate (PSHA_CTX Context, const unsigned char *Buffer, UINT BufferSize)
VOID WINAPI A_SHAFinal (PSHA_CTX Context, PULONG Result)

Generated on Sat May 26 2012 05:04:52 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.