OpenDDS  Snapshot(2023/04/28-20:55)
Classes | Namespaces | Macros | Typedefs | Functions
Hash.cpp File Reference
#include "DCPS/DdsDcps_pch.h"
#include "Hash.h"
#include <cstring>
Include dependency graph for Hash.cpp:

Go to the source code of this file.

Classes

struct  OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::MD5_CTX
 

Namespaces

 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
 
 OpenDDS
 The Internal API and Implementation of OpenDDS.
 
 OpenDDS::DCPS
 

Macros

#define F(x, y, z)   ((z) ^ ((x) & ((y) ^ (z))))
 
#define G(x, y, z)   ((y) ^ ((z) & ((x) ^ (y))))
 
#define H(x, y, z)   ((x) ^ (y) ^ (z))
 
#define I(x, y, z)   ((y) ^ ((x) | ~(z)))
 
#define STEP(f, a, b, c, d, x, t, s)
 
#define SET(n)
 
#define GET(n)   (ctx->block[(n)])
 

Typedefs

typedef unsigned int OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::MD5_u32plus
 

Functions

static const void * OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::body (MD5_CTX *ctx, const void *data, unsigned long size)
 
void OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::MD5_Init (MD5_CTX *ctx)
 
void OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::MD5_Update (MD5_CTX *ctx, const void *data, unsigned long size)
 
void OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::MD5_Final (unsigned char *result, MD5_CTX *ctx)
 
void OpenDDS::DCPS::MD5Hash (MD5Result &result, const void *input, size_t size)
 

Macro Definition Documentation

◆ F

#define F (   x,
  y,
 
)    ((z) ^ ((x) & ((y) ^ (z))))

Definition at line 74 of file Hash.cpp.

Referenced by OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::body().

◆ G

#define G (   x,
  y,
 
)    ((y) ^ ((z) & ((x) ^ (y))))

Definition at line 75 of file Hash.cpp.

Referenced by OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::body().

◆ GET

#define GET (   n)    (ctx->block[(n)])

Definition at line 107 of file Hash.cpp.

Referenced by OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::body().

◆ H

#define H (   x,
  y,
 
)    ((x) ^ (y) ^ (z))

Definition at line 76 of file Hash.cpp.

Referenced by OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::body().

◆ I

#define I (   x,
  y,
 
)    ((y) ^ ((x) | ~(z)))

Definition at line 77 of file Hash.cpp.

Referenced by OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::body().

◆ SET

#define SET (   n)
Value:
(ctx->block[(n)] = \
(MD5_u32plus)ptr[(n) * 4] | \
((MD5_u32plus)ptr[(n) * 4 + 1] << 8) | \
((MD5_u32plus)ptr[(n) * 4 + 2] << 16) | \
((MD5_u32plus)ptr[(n) * 4 + 3] << 24))

Definition at line 101 of file Hash.cpp.

Referenced by OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::body().

◆ STEP

#define STEP (   f,
  a,
  b,
  c,
  d,
  x,
  t,
 
)
Value:
(a) += f((b), (c), (d)) + (x) + (t); \
(a) = (((a) << (s)) | (((a) & 0xffffffff) >> (32 - (s)))); \
(a) += (b);

Definition at line 82 of file Hash.cpp.

Referenced by OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL::body().