|
| ON_SHA1 ()=default |
|
| ON_SHA1 (const ON_SHA1 &)=default |
|
| ~ON_SHA1 ()=default |
|
void | Accumulate2dPoint (const class ON_2dPoint &point) |
|
void | Accumulate2dVector (const class ON_2dVector &vector) |
|
void | Accumulate2fPoint (const class ON_2fPoint &point) |
|
void | Accumulate2fVector (const class ON_2fVector &vector) |
|
void | Accumulate3dPoint (const class ON_3dPoint &point) |
|
void | Accumulate3dVector (const class ON_3dVector &vector) |
|
void | Accumulate3fPoint (const class ON_3fPoint &point) |
|
void | Accumulate3fVector (const class ON_3fVector &vector) |
|
void | Accumulate4dPoint (const class ON_4dPoint &point) |
|
void | Accumulate4fPoint (const class ON_4fPoint &point) |
|
void | AccumulateBool (bool b) |
|
void | AccumulateBoundingBox (const class ON_BoundingBox &bbox) |
|
void | AccumulateBytes (const void *buffer, ON__UINT64 sizeof_buffer) |
|
void | AccumulateDouble (double x) |
|
void | AccumulateDoubleArray (size_t count, const double *a) |
|
void | AccumulateFileReference (const class ON_FileReference &file_reference) |
|
void | AccumulateFloat (float x) |
|
void | AccumulateFloatArray (size_t count, const float *a) |
|
void | AccumulateId (const ON_UUID &id) |
|
void | AccumulateInteger16 (ON__INT16 i) |
|
void | AccumulateInteger32 (ON__INT32 i) |
|
void | AccumulateInteger32Array (size_t count, const ON__INT32 *a) |
|
void | AccumulateInteger64 (ON__INT64 i) |
|
void | AccumulateInteger8 (char i) |
|
void | AccumulateInteger8 (ON__INT8 i) |
|
void | AccumulateLengthUnitSystem (const ON::LengthUnitSystem length_unit_system) |
|
void | AccumulateString (const char *sUTF8, int element_count, ON_StringMapOrdinalType mapping) |
|
void | AccumulateString (const class ON_String &str) |
|
void | AccumulateString (const class ON_String &str, ON_StringMapOrdinalType mapping) |
|
void | AccumulateString (const class ON_wString &str) |
|
void | AccumulateString (const class ON_wString &str, ON_StringMapOrdinalType mapping) |
|
void | AccumulateString (const wchar_t *sUTF8, int element_count, ON_StringMapOrdinalType mapping) |
|
void | AccumulateSubHash (const class ON_SHA1_Hash &sub_hash) |
|
void | AccumulateTransformation (const class ON_Xform &xform) |
|
void | AccumulateUnitSystem (const class ON_UnitSystem &unit_system) |
|
void | AccumulateUnsigned16 (ON__UINT16 u) |
|
void | AccumulateUnsigned32 (ON__UINT32 u) |
|
void | AccumulateUnsigned64 (ON__UINT64 u) |
|
void | AccumulateUnsigned8 (ON__UINT8 u) |
|
ON__UINT64 | ByteCount () const |
|
ON_SHA1_Hash | Hash () const |
|
ON_SHA1 & | operator= (const ON_SHA1 &)=default |
|
void | Reset () |
|
Description: ON_SHA1 is a small class for calculating the SHA-1 hash of a sequence of bytes. It may be use incrementally (the bytes do not have to be in a contiguous array in memory at one time).
Remarks: The ON_SHA1 class cannot be used for cryptographic or security applications. The SHA-1 hash algorithm is not suitable for cryptographic or security applications. The ON_SHA1 class does not "wipe" intermediate results.
If you have two different sequences of N bytes storing information (lower entropy than a random sequence) are you are not intentionally calculating the information to create a SHA-1 hash collision, then the probability that the sequences have the same SHA-1 hash is approximately 2^-80 ~ 10^-24.
Returns: SHA-1 hash value of the sequence of ByteCount() bytes that have been passed to this ON_SHA1 class's Update() function since construction or the last call to Reset(). Remarks: You may use Hash() to compute intermediate SHA-1 hash values.
Put another way, you may call Update() zero or more times passing in N1 bytes, call Digest() to get the SHA-1 hash of those N1 bytes, make zero or more additional calls to Update() passing in N2 additional bytes, call digest to get the SHA-1 hash of the sequence of (N1 + N2) bytes, and so on.