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< eddyViscosity< RASModel< BasicMomentumTransportModel > >, BasicMomentumTransportModel >::correct(), and kOmegaSSTDES< BasicMomentumTransportModel >::FDES().
#define F3 | ( | B, | |
C, | |||
D | |||
) | ( ( B & C ) | ( D & ( B | C ) ) ) |
Definition at line 175 of file SHA1.C.
Referenced by kOmegaSSTLM< BasicMomentumTransportModel >::F1().
#define M | ( | I | ) |
Referenced by Foam::checkMethod(), dynamicLagrangian< BasicMomentumTransportModel >::correct(), PengRobinsonGas< Specie >::Cp(), PengRobinsonGas< Specie >::CpMCv(), ChemicallyActivatedReactionRate< ReactionRate, ChemicallyActivationFunction >::ddc(), FallOffReactionRate< ReactionRate, FallOffFunction >::ddc(), ChemicallyActivatedReactionRate< ReactionRate, ChemicallyActivationFunction >::ddT(), FallOffReactionRate< ReactionRate, FallOffFunction >::ddT(), LLTMatrix< Type >::decompose(), QRMatrix< MatrixType >::decompose(), PairSpringSliderDashpot< CloudType >::evaluatePair(), SortableListEFA< Type >::indices(), SortableListDRGEP< Type >::indices(), LUscalarMatrix::inv(), Foam::max(), Foam::min(), ChemicallyActivatedReactionRate< ReactionRate, ChemicallyActivationFunction >::operator()(), FallOffReactionRate< ReactionRate, FallOffFunction >::operator()(), Foam::operator/(), SortableListEFA< Type >::partialSort(), SortableListDRGEP< Type >::partialSort(), polygonTriangulate::quality(), Roots< N >::Roots(), and Foam::writeEntry().
Referenced by triad::align(), SprayParcel< ParcelType >::calcAtomisation(), SprayParcel< ParcelType >::calcBreakup(), Foam::calcPE15(), Foam::calcQE16(), fixedCoeff::calcTransformModelData(), DarcyForchheimer::calcTransformModelData(), COxidationIntrinsicRate< CloudType >::calculate(), chemistryModel< ThermoType >::calculateRR(), DeardorffDiffStress< BasicMomentumTransportModel >::correct(), SSG< BasicMomentumTransportModel >::correct(), RNGkEpsilon< BasicMomentumTransportModel >::correct(), LRR< BasicMomentumTransportModel >::correct(), perfectFluid< Specie >::Cp(), perfectGas< Specie >::CpMCv(), perfectFluid< Specie >::CpMCv(), PengRobinsonGas< Specie >::CpMCv(), cyclicTransform::cyclicTransform(), PengRobinsonGas< Specie >::E(), chemistryReductionMethod< ThermoType >::endReduceMechanism(), PairSpringSliderDashpot< CloudType >::evaluatePair(), turbulenceFields::execute(), PengRobinsonGas< Specie >::H(), if(), Foam::incGammaRatio_Q(), janafThermo< EquationOfState >::janafThermo(), Rs::jcalc(), rotating::jcalc(), functionDot::jcalc(), function::jcalc(), sutherlandTransport< Thermo >::kappa(), molecule::move(), NamedEnum< compressibleField, 8 >::names(), InflationInjection< CloudType >::parcelsToInject(), perfectGas< Specie >::psi(), perfectFluid< Specie >::psi(), PengRobinsonGas< Specie >::psi(), EFA< ThermoType >::reduceMechanism(), DRG< ThermoType >::reduceMechanism(), PFA< ThermoType >::reduceMechanism(), DAC< ThermoType >::reduceMechanism(), DRGEP< ThermoType >::reduceMechanism(), perfectGas< Specie >::rho(), incompressiblePerfectGas< Specie >::rho(), perfectFluid< Specie >::rho(), PengRobinsonGas< Specie >::rho(), rotatedBoxToCell::rotatedBoxToCell(), rotatedBoxToFace::rotatedBoxToFace(), sixDoFRigidBodyMotion::sixDoFRigidBodyMotion(), triad::sortxyz(), perfectGas< Specie >::Sp(), perfectFluid< Specie >::Sp(), PengRobinsonGas< Specie >::Sp(), chemistryModel< ThermoType >::tc(), linearMotion::transformation(), oscillatingLinearMotion::transformation(), axisRotationMotion::transformation(), oscillatingRotatingMotion::transformation(), rotatingMotion::transformation(), sixDoFMotion::transformation(), SDA::transformation(), supersonicFreestreamFvPatchVectorField::updateCoeffs(), janafThermo< EquationOfState >::write(), rhoConst< Specie >::Z(), icoTabulated< Specie >::Z(), incompressiblePerfectGas< Specie >::Z(), icoPolynomial< Specie, PolySize >::Z(), linear< Type >::Z(), perfectFluid< Specie >::Z(), rPolynomial< Specie >::Z(), Boussinesq< Specie >::Z(), adiabaticPerfectFluid< Specie >::Z(), and rhoTabulated< Specie >::Z().