Loading...
Searching...
No Matches
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)
#define F2(B, C, D)
#define F3(B, C, D)
#define F4(B, C, D)
#define rol_uint32(x, 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

◆ K1

◆ K2

◆ K3

#define K3   0x8f1bbcdc

Definition at line 145 of file SHA1.C.

Referenced by kineticTheoryModel::correct().

◆ K4

#define K4   0xca62c1d6

Definition at line 146 of file SHA1.C.

Referenced by kineticTheoryModel::correct().

◆ F1

#define F1 ( B,
C,
D )
Value:
( D ^ ( B & ( C ^ D ) ) )
static const Foam::dimensionedScalar C("", Foam::dimTemperature, 234.5)
static const Foam::dimensionedScalar B("", Foam::dimless, 18.678)
const dimensionedScalar & D

Definition at line 149 of file SHA1.C.

Referenced by Beetstra::CdRe(), Tenneti::CdRe(), kOmegaSSTBase< BasicEddyViscosityModel >::correct(), kOmegaSSTDES< BasicTurbulenceModel >::LESRegion(), kOmegaSSTDDES< BasicTurbulenceModel >::S2(), and kOmegaSSTDES< BasicTurbulenceModel >::S2().

◆ F2

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

Definition at line 150 of file SHA1.C.

Referenced by kOmegaSSTBase< BasicEddyViscosityModel >::F23().

◆ F3

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

Definition at line 151 of file SHA1.C.

Referenced by kOmegaSSTLM< BasicTurbulenceModel >::F1(), and kOmegaSSTBase< BasicEddyViscosityModel >::F23().

◆ F4

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

Definition at line 152 of file SHA1.C.

◆ rol_uint32

#define rol_uint32 ( x,
nbits )
Value:
(((x) << (nbits)) | ((x) >> (32 - (nbits))))

◆ M

◆ R

#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)
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
CGAL::Exact_predicates_exact_constructions_kernel K
#define M(I)
volVectorField F(fluid.F())

Referenced by globalIndexAndTransform::addToTransformIndex(), triad::align(), SprayParcel< ParcelType >::calcAtomization(), SprayParcel< ParcelType >::calcBreakup(), Foam::calcPE15(), Foam::calcQE16(), COxidationIntrinsicRate< CloudType >::calculate(), ReynoldsAnalogy::Cf(), turbulentDFSEMInletFvPatchVectorField::checkStresses(), turbulentDFSEMInletFvPatchVectorField::checkStresses(), IATE::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), PengRobinsonGas< Specie >::CpMCv(), perfectFluid< Specie >::CpMCv(), perfectGas< Specie >::CpMCv(), PengRobinsonGas< Specie >::E(), eddy::eddy(), PairSpringSliderDashpot< CloudType >::evaluatePair(), forAll(), PengRobinsonGas< Specie >::H(), if(), Foam::Math::incGammaRatio_Q(), cyclicAMIPolyPatch::initInterpolate(), cyclicAMIPolyPatch::interpolate(), vectorTensorTransform::invTransformPosition(), vectorTensorTransform::invTransformPosition(), vectorTensorTransform::invTransformPositionList(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::jacobian(), TDACChemistryModel< ReactionThermo, ThermoType >::jacobian(), janafThermo< EquationOfState >::janafThermo(), sutherlandTransport< Thermo >::kappa(), makeGraph(), makeGraph(), makeGraph(), makeGraph(), makeGraph(), makeGraph(), makeGraph(), molecule::move(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omega(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omega(), StandardChemistryModel< ReactionThermo, ThermoType >::omega(), StandardChemistryModel< ReactionThermo, ThermoType >::omega(), TDACChemistryModel< ReactionThermo, ThermoType >::omega(), TDACChemistryModel< CompType, ThermoType >::omega(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omegaI(), StandardChemistryModel< ReactionThermo, ThermoType >::omegaI(), StandardChemistryModel< CompType, ThermoType >::omegaI(), coordinateSystem::oneToManyImpl(), coordinateSystem::oneToOneImpl(), InflationInjection< CloudType >::parcelsToInject(), Foam::MatrixTools::pinv(), PengRobinsonGas< Specie >::psi(), perfectFluid< Specie >::psi(), perfectGas< Specie >::psi(), singleStepCombustion< ReactionThermo, ThermoType >::Qdot(), randomCoalescence::R(), turbulentBreakUp::R(), wallBoiling::R(), DAC< CompType, ThermoType >::reduceMechanism(), DRG< CompType, ThermoType >::reduceMechanism(), DRGEP< CompType, ThermoType >::reduceMechanism(), EFA< CompType, ThermoType >::reduceMechanism(), PFA< CompType, ThermoType >::reduceMechanism(), incompressiblePerfectGas< Specie >::rho(), PengRobinsonGas< Specie >::rho(), perfectFluid< Specie >::rho(), perfectGas< Specie >::rho(), PengRobinsonGas< Specie >::S(), perfectFluid< Specie >::S(), perfectGas< Specie >::S(), ConeNozzleInjection< CloudType >::setPositionAndCell(), sixDoFRigidBodyMotion::sixDoFRigidBodyMotion(), StandardChemistryModel< ReactionThermo, ThermoType >::tc(), Schroeder::TDNB(), axisRotationMotion::transformation(), drivenLinearMotion::transformation(), linearMotion::transformation(), oscillatingRotatingMotion::transformation(), rotatingMotion::transformation(), SDA::transformation(), tabulated6DoFMotion::transformation(), controlPointsDefinition::transformControlPoints(), vectorTensorTransform::transformPosition(), vectorTensorTransform::transformPosition(), vectorTensorTransform::transformPositionList(), turbulentDFSEMInletFvPatchVectorField::turbulentDFSEMInletFvPatchVectorField(), turbulentDigitalFilterInletFvPatchField< Type >::turbulentDigitalFilterInletFvPatchField(), supersonicFreestreamFvPatchVectorField::updateCoeffs(), NURBS3DVolumeCylindrical::updateLocalCoordinateSystem(), EulerImplicit< ChemistryModel >::updateRRInReactionI(), janafThermo< EquationOfState >::write(), uniformBin::writeFileHeader(), StandardChemistryModel< CompType, ThermoType >::~StandardChemistryModel(), and turbulentDFSEMInletFvPatchVectorField::~turbulentDFSEMInletFvPatchVectorField().