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 F1 | ( | B, | |
C, | |||
D | |||
) | ( D ^ ( B & ( C ^ D ) ) ) |
Definition at line 173 of file SHA1.C.
Referenced by kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::correct(), and kOmegaSSTDES< BasicTurbulenceModel >::FDES().
#define F3 | ( | B, | |
C, | |||
D | |||
) | ( ( B & C ) | ( D & ( B | C ) ) ) |
Definition at line 175 of file SHA1.C.
Referenced by kOmegaSSTLM< BasicTurbulenceModel >::F1().
#define M | ( | I | ) |
Referenced by Foam::checkMethod(), dynamicLagrangian< BasicTurbulenceModel >::correct(), PengRobinsonGas< Specie >::Cp(), PengRobinsonGas< Specie >::CpMCv(), thirdBodyArrheniusReactionRate::dcidc(), FallOffReactionRate< ReactionRate, FallOffFunction >::dcidc(), ChemicallyActivatedReactionRate< ReactionRate, ChemicallyActivationFunction >::dcidc(), FallOffReactionRate< ReactionRate, FallOffFunction >::dcidT(), ChemicallyActivatedReactionRate< ReactionRate, ChemicallyActivationFunction >::dcidT(), LLTMatrix< Type >::decompose(), QRMatrix< MatrixType >::decompose(), PairSpringSliderDashpot< CloudType >::evaluatePair(), SortableListDRGEP< Type >::indices(), SortableListEFA< Type >::indices(), LUscalarMatrix::inv(), Matrix< RectangularMatrix< Type >, Type >::Matrix(), Foam::max(), Foam::min(), Foam::operator/(), SortableListDRGEP< Type >::partialSort(), SortableListEFA< Type >::partialSort(), and Roots< N >::Roots().
Referenced by globalIndexAndTransform::addToTransformIndex(), triad::align(), SprayParcel< ParcelType >::calcAtomization(), SprayParcel< ParcelType >::calcBreakup(), Foam::calcPE15(), Foam::calcQE16(), fixedCoeff::calcTransformModelData(), DarcyForchheimer::calcTransformModelData(), COxidationIntrinsicRate< CloudType >::calculate(), StandardChemistryModel< CompType, ThermoType >::calculateRR(), DeardorffDiffStress< BasicTurbulenceModel >::correct(), RNGkEpsilon< BasicTurbulenceModel >::correct(), SSG< BasicTurbulenceModel >::correct(), LRR< BasicTurbulenceModel >::correct(), perfectFluid< Specie >::Cp(), perfectGas< Specie >::CpMCv(), perfectFluid< Specie >::CpMCv(), PengRobinsonGas< Specie >::CpMCv(), PengRobinsonGas< Specie >::E(), PairSpringSliderDashpot< CloudType >::evaluatePair(), turbulenceFields::execute(), PengRobinsonGas< Specie >::H(), if(), Foam::incGammaRatio_Q(), cyclicAMIPolyPatch::interpolate(), StandardChemistryModel< CompType, ThermoType >::jacobian(), janafThermo< EquationOfState >::janafThermo(), Rs::jcalc(), function::jcalc(), functionDot::jcalc(), sutherlandTransport< Thermo >::kappa(), molecule::move(), pyrolysisChemistryModel< CompType, SolidThermo, GasThermo >::omega(), StandardChemistryModel< CompType, ThermoType >::omega(), TDACChemistryModel< CompType, ThermoType >::omega(), StandardChemistryModel< CompType, ThermoType >::omegaI(), InflationInjection< CloudType >::parcelsToInject(), perfectGas< Specie >::psi(), perfectFluid< Specie >::psi(), PengRobinsonGas< Specie >::psi(), singleStepCombustion< ReactionThermo, ThermoType >::Qdot(), PaSR< ReactionThermo >::R(), EDC< ReactionThermo >::R(), EFA< CompType, ThermoType >::reduceMechanism(), PFA< CompType, ThermoType >::reduceMechanism(), DRG< 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(), triad::sortxyz(), StandardChemistryModel< CompType, ThermoType >::tc(), linearMotion::transformation(), oscillatingLinearMotion::transformation(), axisRotationMotion::transformation(), oscillatingRotatingMotion::transformation(), rotatingMotion::transformation(), tabulated6DoFMotion::transformation(), SDA::transformation(), supersonicFreestreamFvPatchVectorField::updateCoeffs(), cyclicAMIGAMGInterfaceField::updateInterfaceMatrix(), EulerImplicit< ChemistryModel >::updateRRInReactionI(), and janafThermo< EquationOfState >::write().