Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1. More...
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) |
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 – Expansion function fix t@il se.nl
Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
Definition in file SHA1.C.
#define K1 0x5a827999 |
Definition at line 143 of file SHA1.C.
Referenced by kineticTheoryModel::correct(), OneResistanceHeatTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), and TwoResistanceHeatTransferPhaseSystem< BasePhaseSystem >::heatTransfer().
#define K2 0x6ed9eba1 |
Definition at line 144 of file SHA1.C.
Referenced by kineticTheoryModel::correct(), OneResistanceHeatTransferPhaseSystem< BasePhaseSystem >::heatTransfer(), and TwoResistanceHeatTransferPhaseSystem< BasePhaseSystem >::heatTransfer().
#define K3 0x8f1bbcdc |
Definition at line 145 of file SHA1.C.
Referenced by kineticTheoryModel::correct().
#define K4 0xca62c1d6 |
Definition at line 146 of file SHA1.C.
Referenced by kineticTheoryModel::correct().
Definition at line 149 of file SHA1.C.
Referenced by Beetstra::CdRe(), Tenneti::CdRe(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::correct(), kOmegaSSTDES< BasicTurbulenceModel >::epsilonByk(), kOmegaSSTLM< BasicTurbulenceModel >::epsilonByk(), kOmegaSSTDES< BasicTurbulenceModel >::LESRegion(), kOmegaSSTDDES< BasicTurbulenceModel >::S2(), and kOmegaSSTDES< BasicTurbulenceModel >::S2().
Definition at line 150 of file SHA1.C.
Referenced by adjointkOmegaSST::dF2_dk(), adjointkOmegaSST::dF2_domega(), adjointkOmegaSST::dnut_dk(), adjointkOmegaSST::dnut_domega(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::F23(), adjointkOmegaSST::GbyNu(), kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::GbyNu(), adjointkOmegaSST::nutJacobianU(), and adjointkOmegaSST::nutMeanFlowSource().
Definition at line 151 of file SHA1.C.
Referenced by kOmegaSSTLM< BasicTurbulenceModel >::F1(), and kOmegaSSTBase< eddyViscosity< RASModel< BasicTurbulenceModel > > >::F23().
#define M | ( | I | ) |
Referenced by dynamicLagrangian< BasicTurbulenceModel >::correct(), PengRobinsonGas< Specie >::Cp(), PengRobinsonGas< Specie >::CpMCv(), Foam::fam::div(), adjointkOmegaSST::dNutdbMult(), PairSpringSliderDashpot< CloudType >::evaluatePair(), LBFGS::HessianDiag(), LBFGS::HessianVectorProduct(), LUscalarMatrix::inv(), adjointkOmegaSST::nutMeanFlowSource(), SortableListDRGEP< Type >::partialSort(), SortableListEFA< Type >::partialSort(), Roots< N >::Roots(), LBFGS::SR1HessianDiag(), LBFGS::SR1HessianVectorProduct(), outletMachNumberPressureFvPatchScalarField::updateCoeffs(), surfaceIteratorPLIC::vofCutCell(), and surfaceIteratorIso::vofCutCell().
Referenced by globalIndexAndTransform::addToTransformIndex(), triad::align(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::boundNormalStress(), SprayParcel< ParcelType >::calcAtomization(), SprayParcel< ParcelType >::calcBreakup(), Foam::calcPE15(), Foam::calcQE16(), COxidationIntrinsicRate< CloudType >::calculate(), ReynoldsAnalogy::Cf(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::checkRealizabilityConditions(), turbulentDFSEMInletFvPatchVectorField::checkStresses(), IATE::correct(), DeardorffDiffStress< BasicTurbulenceModel >::correct(), SSG< BasicTurbulenceModel >::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), LRR< BasicTurbulenceModel >::correct(), EBRSM< BasicTurbulenceModel >::correct(), ReynoldsStress< RASModel< BasicTurbulenceModel > >::correctWallShearStress(), perfectGas< Specie >::CpMCv(), perfectFluid< Specie >::CpMCv(), PengRobinsonGas< 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(), TDACChemistryModel< CompType, ThermoType >::jacobian(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::jacobian(), StandardChemistryModel< CompType, ThermoType >::jacobian(), janafThermo< EquationOfState >::janafThermo(), sutherlandTransport< Thermo >::kappa(), molecule::move(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omega(), TDACChemistryModel< CompType, ThermoType >::omega(), StandardChemistryModel< CompType, ThermoType >::omega(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omegaI(), StandardChemistryModel< CompType, ThermoType >::omegaI(), coordinateSystem::oneToManyImpl(), coordinateSystem::oneToOneImpl(), vectorTensorTransform::operator=(), InflationInjection< CloudType >::parcelsToInject(), Foam::MatrixTools::pinv(), perfectGas< Specie >::psi(), perfectFluid< Specie >::psi(), PengRobinsonGas< Specie >::psi(), singleStepCombustion< ReactionThermo, ThermoType >::Qdot(), wallBoiling::R(), dummy::R(), turbulentBreakUp::R(), randomCoalescence::R(), PaSR< ReactionThermo >::R(), EDC< ReactionThermo >::R(), EFA< CompType, ThermoType >::reduceMechanism(), DRG< CompType, ThermoType >::reduceMechanism(), PFA< CompType, ThermoType >::reduceMechanism(), DAC< CompType, ThermoType >::reduceMechanism(), DRGEP< CompType, ThermoType >::reduceMechanism(), perfectGas< Specie >::rho(), incompressiblePerfectGas< Specie >::rho(), perfectFluid< Specie >::rho(), PengRobinsonGas< Specie >::rho(), perfectGas< Specie >::S(), perfectFluid< Specie >::S(), PengRobinsonGas< Specie >::S(), sixDoFRigidBodyMotion::sixDoFRigidBodyMotion(), StandardChemistryModel< CompType, ThermoType >::tc(), Schroeder::TDNB(), vectorTensorTransform::transform(), linearMotion::transformation(), axisRotationMotion::transformation(), drivenLinearMotion::transformation(), oscillatingRotatingMotion::transformation(), rotatingMotion::transformation(), tabulated6DoFMotion::transformation(), SDA::transformation(), controlPointsDefinition::transformControlPoints(), vectorTensorTransform::transformPosition(), turbulentDFSEMInletFvPatchVectorField::turbulentDFSEMInletFvPatchVectorField(), turbulentDigitalFilterInletFvPatchField< Type >::turbulentDigitalFilterInletFvPatchField(), supersonicFreestreamFvPatchVectorField::updateCoeffs(), NURBS3DVolumeCylindrical::updateLocalCoordinateSystem(), EulerImplicit< ChemistryModel >::updateRRInReactionI(), janafThermo< EquationOfState >::write(), uniformBin::writeFileHeader(), and MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::YiEqn().