Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1. More...
Functions to compute SHA1 message digest of files or memory blocks according to the NIST specification FIPS-180-1.
Adapted from the gnulib implementation written by Scott G. Miller with credits to Robert Klep <robert@ilse.nl> -- Expansion function fix
Copyright (C) 2000, 2001, 2003, 2004, 2005, 2006, 2008 Free Software Foundation, Inc.
Definition in file SHA1.C.
#include "src/OpenFOAM/primitives/hashes/SHA1/SHA1.H"#include "src/OpenFOAM/db/IOstreams/IOstreams.H"#include <cstring> Include dependency graph for SHA1.C:
 Include dependency graph for SHA1.C:Go to the source code of this file.
| Defines | |
| #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) | 
| #define F1 | ( | B, | |
| C, | |||
| D | |||
| ) | ( D ^ ( B & ( C ^ D ) ) ) | 
Definition at line 180 of file SHA1.C.
Referenced by kOmegaSST::correct().
| #define F2 | ( | B, | |
| C, | |||
| D | |||
| ) | (B ^ C ^ D) | 
Definition at line 181 of file SHA1.C.
Referenced by kOmegaSST::correct(), and kOmegaSST::kOmegaSST().
| #define rol_uint32 | ( | x, | |
| nbits | |||
| ) | (((x) << (nbits)) | ((x) >> (32 - (nbits)))) | 
| #define M | ( | I ) | 
( tm = x[I & 0x0F] ^ x[(I-14) & 0x0F] \ ^ x[(I-8) & 0x0F] ^ x[(I-3) & 0x0F] \ , (x[I & 0x0F] = rol_uint32(tm, 1)) )
Referenced by Foam::operator&(), and Foam::operator<<().
do \ { \ E += rol_uint32(A, 5) + F(B, C, D) + K + M; \ B = rol_uint32(B, 30); \ } while(0)
Referenced by sutherlandTransport< thermo >::alpha(), LISA::atomizeParcel(), blobsSheetAtomization::atomizeParcel(), reitzDiwakar::breakupParcel(), RNGkEpsilon::correct(), Foam::eigenValues(), for(), if(), sutherlandTransport< thermo >::kappa(), molecule::move(), ODEChemistryModel< CompType, ThermoType >::omega(), sequential< CompType, ThermoType >::solve(), EulerImplicit< CompType, ThermoType >::solve(), SKA::transformation(), SDA::transformation(), and supersonicFreestreamFvPatchVectorField::updateCoeffs().