Macros
SHA1.C File Reference

Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1. More...

Include dependency graph for SHA1.C:

Go to the source code of this file.

Macros

#define K1   0x5a827999
 
#define K2   0x6ed9eba1
 
#define K3   0x8f1bbcdc
 
#define K4   0xca62c1d6
 
#define F1(B, C, D)   ( D ^ ( B & ( C ^ D ) ) )
 
#define F2(B, C, D)   (B ^ C ^ D)
 
#define F3(B, C, D)   ( ( B & C ) | ( D & ( B | C ) ) )
 
#define F4(B, C, D)   (B ^ C ^ D)
 
#define rol_uint32(x, nbits)   (((x) << (nbits)) | ((x) >> (32 - (nbits))))
 
#define M(I)
 
#define R(A, B, C, D, E, F, K, M)
 

Detailed Description

Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1.

Original source file SHA1.C

Adapted from the gnulib implementation written by Scott G. Miller with credits to Robert Klep rober.nosp@m.t@il.nosp@m.se.nl – Expansion function fix

Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.

Definition in file SHA1.C.

Macro Definition Documentation

#define K1   0x5a827999

Definition at line 169 of file SHA1.C.

#define K2   0x6ed9eba1

Definition at line 170 of file SHA1.C.

#define K3   0x8f1bbcdc

Definition at line 171 of file SHA1.C.

#define K4   0xca62c1d6

Definition at line 172 of file SHA1.C.

#define F1 (   B,
  C,
 
)    ( D ^ ( B & ( C ^ D ) ) )

Definition at line 175 of file SHA1.C.

Referenced by kOmegaSST< BasicTurbulenceModel >::correct().

#define F2 (   B,
  C,
 
)    (B ^ C ^ D)

Definition at line 176 of file SHA1.C.

#define F3 (   B,
  C,
 
)    ( ( B & C ) | ( D & ( B | C ) ) )

Definition at line 177 of file SHA1.C.

#define F4 (   B,
  C,
 
)    (B ^ C ^ D)

Definition at line 178 of file SHA1.C.

#define rol_uint32 (   x,
  nbits 
)    (((x) << (nbits)) | ((x) >> (32 - (nbits))))
#define M (   I)
Value:
( tm = x[I & 0x0F] ^ x[(I-14) & 0x0F] \
^ x[(I-8) & 0x0F] ^ x[(I-3) & 0x0F] \
, (x[I & 0x0F] = rol_uint32(tm, 1)) )
#define rol_uint32(x, nbits)
static const sphericalTensor I(1)

Referenced by Foam::checkMethod(), dynamicLagrangian< BasicTurbulenceModel >::correct(), PairSpringSliderDashpot< CloudType >::evaluatePair(), and Matrix< Form, Type >::Matrix().

#define R (   A,
  B,
  C,
  D,
  E,
  F,
  K,
  M 
)
Value:
do \
{ \
E += rol_uint32(A, 5) + F(B, C, D) + K + M; \
B = rol_uint32(B, 30); \
} while (0)
#define rol_uint32(x, nbits)
#define M(I)
CGAL::Exact_predicates_exact_constructions_kernel K
const dimensionedScalar F
Faraday constant: default SI units: [C/mol].
volScalarField & C

Referenced by globalIndexAndTransform::addToTransformIndex(), triad::align(), SprayParcel< ParcelType >::calcAtomization(), SprayParcel< ParcelType >::calcBreakup(), fixedCoeff::calcTranformModelData(), DarcyForchheimer::calcTranformModelData(), COxidationIntrinsicRate< CloudType >::calculate(), DeardorffDiffStress< BasicTurbulenceModel >::correct(), SSG< BasicTurbulenceModel >::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), LRR< BasicTurbulenceModel >::correct(), PairSpringSliderDashpot< CloudType >::evaluatePair(), for(), if(), sutherlandTransport< Thermo >::kappa(), molecule::move(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omega(), chemistryModel< CompType, ThermoType >::omega(), chemistryModel< CompType, ThermoType >::omegaI(), InflationInjection< CloudType >::parcelsToInject(), perfectGas< Specie >::psi(), perfectFluid< Specie >::psi(), PengRobinsonGas< Specie >::psi(), PaSR< Type >::R(), perfectGas< Specie >::rho(), perfectFluid< Specie >::rho(), incompressiblePerfectGas< Specie >::rho(), PengRobinsonGas< Specie >::rho(), singleStepCombustion< CombThermoType, ThermoType >::Sh(), sixDoFRigidBodyMotion::sixDoFRigidBodyMotion(), triad::sortxyz(), vectorTensorTransform::transform(), linearMotion::transformation(), oscillatingLinearMotion::transformation(), axisRotationMotion::transformation(), oscillatingRotatingMotion::transformation(), rotatingMotion::transformation(), tabulated6DoFMotion::transformation(), SDA::transformation(), fieldCoordinateSystemTransform::transformField(), supersonicFreestreamFvPatchVectorField::updateCoeffs(), EulerImplicit< ChemistryModel >::updateRRInReactionI(), and PengRobinsonGas< Specie >::Z().