Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

/ray/src/lib/crypto/sha0hash.cc File Reference

#include "sha0hash.h"

Include dependency graph for sha0hash.cc:

Include dependency graph

Go to the source code of this file.

Defines

#define EXPAND(pa, pb, pc, pd)   (*(pa++) ^ *(pb++) ^ *(pc++) ^ *(pd++))

Functions

uint32 sha_func0 (uint32 x, uint32 y, uint32 z)
uint32 sha_func1 (uint32 x, uint32 y, uint32 z)
uint32 sha_func2 (uint32 x, uint32 y, uint32 z)
uint32 sha_func3 (uint32 x, uint32 y, uint32 z)
uint32 rotate (uint32 x, int n)

Variables

const uint32 sha_const0 = 0x5a827999U
const uint32 sha_const1 = 0x6ed9eba1U
const uint32 sha_const2 = 0x8f1bbcdcU
const uint32 sha_const3 = 0xca62c1d6U
const uint32 sha_init_state [5]


Define Documentation

#define EXPAND pa,
pb,
pc,
pd   )     (*(pa++) ^ *(pb++) ^ *(pc++) ^ *(pd++))
 

Definition at line 57 of file sha0hash.cc.

Referenced by SHA1Hash::AtomicHash(), and SHA0Hash::AtomicHash().


Function Documentation

uint32 rotate uint32  x,
int  n
[inline, static]
 

Definition at line 43 of file sha0hash.cc.

References uint32.

uint32 sha_func0 uint32  x,
uint32  y,
uint32  z
[inline, static]
 

Definition at line 29 of file sha0hash.cc.

References uint32.

uint32 sha_func1 uint32  x,
uint32  y,
uint32  z
[inline, static]
 

Definition at line 33 of file sha0hash.cc.

References uint32.

uint32 sha_func2 uint32  x,
uint32  y,
uint32  z
[inline, static]
 

Definition at line 36 of file sha0hash.cc.

References uint32.

uint32 sha_func3 uint32  x,
uint32  y,
uint32  z
[inline, static]
 

Definition at line 40 of file sha0hash.cc.

References uint32.


Variable Documentation

const uint32 sha_const0 = 0x5a827999U [static]
 

Definition at line 48 of file sha0hash.cc.

Referenced by SHA0Hash::AtomicHash().

const uint32 sha_const1 = 0x6ed9eba1U [static]
 

Definition at line 49 of file sha0hash.cc.

Referenced by SHA0Hash::AtomicHash().

const uint32 sha_const2 = 0x8f1bbcdcU [static]
 

Definition at line 50 of file sha0hash.cc.

Referenced by SHA0Hash::AtomicHash().

const uint32 sha_const3 = 0xca62c1d6U [static]
 

Definition at line 51 of file sha0hash.cc.

Referenced by SHA0Hash::AtomicHash().

const uint32 sha_init_state[5] [static]
 

Initial value:

    { 0x67452301U, 0xefcdab89U, 0x98badcfeU, 0x10325476U, 0xc3d2e1f0U }

Definition at line 53 of file sha0hash.cc.

Referenced by SHA0Hash::reset().


Generated on Sat Feb 19 22:33:53 2005 for Ray by doxygen 1.3.5