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

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

#include "sha1hash.h"

Include dependency graph for sha1hash.cc:

Include dependency graph

Go to the source code of this file.

Defines

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

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   )     rotate(*(pa++) ^ *(pb++) ^ *(pc++) ^ *(pd++),1)
 

Definition at line 61 of file sha1hash.cc.


Function Documentation

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

Definition at line 46 of file sha1hash.cc.

References uint32.

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

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

Definition at line 32 of file sha1hash.cc.

References uint32.

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

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

Definition at line 36 of file sha1hash.cc.

References uint32.

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

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

Definition at line 39 of file sha1hash.cc.

References uint32.

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

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

Definition at line 43 of file sha1hash.cc.

References uint32.

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


Variable Documentation

const uint32 sha_const0 = 0x5a827999U [static]
 

Definition at line 51 of file sha1hash.cc.

Referenced by SHA1Hash::AtomicHash().

const uint32 sha_const1 = 0x6ed9eba1U [static]
 

Definition at line 52 of file sha1hash.cc.

Referenced by SHA1Hash::AtomicHash().

const uint32 sha_const2 = 0x8f1bbcdcU [static]
 

Definition at line 53 of file sha1hash.cc.

Referenced by SHA1Hash::AtomicHash().

const uint32 sha_const3 = 0xca62c1d6U [static]
 

Definition at line 54 of file sha1hash.cc.

Referenced by SHA1Hash::AtomicHash().

const uint32 sha_init_state[5] [static]
 

Initial value:

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

Definition at line 56 of file sha1hash.cc.

Referenced by SHA1Hash::reset().


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