Back to index

nordugrid-arc-nox  1.1.0~rc6
Namespaces | Defines | Variables
CheckSum.cpp File Reference
#include <cctype>
#include <sys/types.h>
#include <arc/data/CheckSum.h>

Go to the source code of this file.

Namespaces

namespace  Arc
 ARCJSDLParser The ARCJSDLParser class, derived from the JobDescriptionParser class, is primarily a job description parser for the consolidated job description language (ARCJSDL), derived from JSDL, described in the following document http://svn.nordugrid.org/trac/nordugrid/browser/arc1/trunk/doc/tech_doc/client/job_description.odt.

Defines

#define F(X, Y, Z)   (((X)&(Y)) | ((~(X)) & (Z)))
#define G(X, Y, Z)   (((X)&(Z)) | ((Y)&(~(Z))))
#define H(X, Y, Z)   ((X) ^ (Y) ^ (Z))
#define I(X, Y, Z)   ((Y) ^ ((X) | (~(Z))))
#define OP1(a, b, c, d, k, s, i)
#define OP2(a, b, c, d, k, s, i)
#define OP3(a, b, c, d, k, s, i)
#define OP4(a, b, c, d, k, s, i)
#define A_INIT   (0x67452301)
#define B_INIT   (0xefcdab89)
#define C_INIT   (0x98badcfe)
#define D_INIT   (0x10325476)

Variables

static uint32_t gtable [256]
static uint32_t Arc::T [64]

Define Documentation

#define A_INIT   (0x67452301)

Definition at line 198 of file CheckSum.cpp.

#define B_INIT   (0xefcdab89)

Definition at line 199 of file CheckSum.cpp.

#define C_INIT   (0x98badcfe)

Definition at line 200 of file CheckSum.cpp.

#define D_INIT   (0x10325476)

Definition at line 201 of file CheckSum.cpp.

#define F (   X,
  Y,
 
)    (((X)&(Y)) | ((~(X)) & (Z)))

Definition at line 173 of file CheckSum.cpp.

#define G (   X,
  Y,
 
)    (((X)&(Z)) | ((Y)&(~(Z))))

Definition at line 174 of file CheckSum.cpp.

#define H (   X,
  Y,
 
)    ((X) ^ (Y) ^ (Z))

Definition at line 175 of file CheckSum.cpp.

#define I (   X,
  Y,
 
)    ((Y) ^ ((X) | (~(Z))))

Definition at line 176 of file CheckSum.cpp.

#define OP1 (   a,
  b,
  c,
  d,
  k,
  s,
 
)
Value:
{ \
    uint32_t t = ((a) + F(b, c, d) + X[k] + T[i - 1]); \
    (a) = (b) + (((t) << (s)) | ((t) >> (32 - s))); \
}

Definition at line 178 of file CheckSum.cpp.

#define OP2 (   a,
  b,
  c,
  d,
  k,
  s,
 
)
Value:
{ \
    uint32_t t = ((a) + G(b, c, d) + X[k] + T[i - 1]); \
    (a) = (b) + (((t) << (s)) | ((t) >> (32 - s))); \
}

Definition at line 183 of file CheckSum.cpp.

#define OP3 (   a,
  b,
  c,
  d,
  k,
  s,
 
)
Value:
{ \
    uint32_t t = ((a) + H(b, c, d) + X[k] + T[i - 1]); \
    (a) = (b) + (((t) << (s)) | ((t) >> (32 - s))); \
}

Definition at line 188 of file CheckSum.cpp.

#define OP4 (   a,
  b,
  c,
  d,
  k,
  s,
 
)
Value:
{ \
    uint32_t t = ((a) + I(b, c, d) + X[k] + T[i - 1]); \
    (a) = (b) + (((t) << (s)) | ((t) >> (32 - s))); \
}

Definition at line 193 of file CheckSum.cpp.


Variable Documentation

uint32_t gtable[256] [static]

Definition at line 24 of file CheckSum.cpp.