16 #if !defined(OPENNURBS_SHA1_INC_) 17 #define OPENNURBS_SHA1_INC_ 60 const wchar_t* file_name,
61 ON__UINT64& sizeof_file
65 const char* file_name,
66 ON__UINT64& sizeof_file
125 ON__UINT64& sizeof_file
139 ON__UINT64& byte_count
145 ON__UINT64& byte_count
149 const wchar_t* null_terminated_string
162 ON__UINT64& byte_count
168 ON__UINT64& byte_count
173 const char* null_terminated_string
186 bool bUpperCaseHexadecimalDigits
199 bool bUpperCaseHexadecimalDigits
218 bool IsZeroDigest()
const;
224 bool IsEmptyContentHash()
const;
226 bool IsZeroDigentOrEmptyContentHash()
const;
228 ON__UINT8 m_digest[20];
273 #if defined(ON_COMPILER_MSC) && defined(NDEBUG) 278 void AccumulateBytes(
280 ON__UINT64 sizeof_buffer
289 void AccumulateDouble(
299 void AccumulateDoubleArray(
304 void Accumulate2dPoint(
308 void Accumulate3dPoint(
312 void Accumulate4dPoint(
316 void Accumulate2dVector(
320 void Accumulate3dVector(
324 void AccumulateBoundingBox(
328 void AccumulateUnitSystem(
332 void AccumulateLengthUnitSystem(
333 const ON::LengthUnitSystem length_unit_system
340 void AccumulateFileReference(
344 void AccumulateTransformation(
348 void AccumulateInteger8(
352 void AccumulateUnsigned8(
356 void AccumulateInteger16(
360 void AccumulateUnsigned16(
364 void AccumulateInteger32(
368 void AccumulateUnsigned32(
372 void AccumulateInteger64(
376 void AccumulateUnsigned64(
386 void AccumulateString(
390 void AccumulateString(
398 void AccumulateString(
401 ON_StringMapOrdinalType mapping
404 void AccumulateString(
405 const wchar_t* sUTF8,
407 ON_StringMapOrdinalType mapping
410 void AccumulateString(
412 ON_StringMapOrdinalType mapping
415 void AccumulateString(
417 ON_StringMapOrdinalType mapping
421 void AccumulateSubHash(
426 void Internal_SwapBigEndianUpdate(
428 ON__UINT64 sizeof_buffer
436 ON__UINT64 ByteCount()
const;
473 static bool Validate();
476 void Internal_Accumulate(
const ON__UINT8* input, ON__UINT32 length);
477 void set_final_hash();
479 ON__UINT64 m_byte_count = 0;
482 mutable ON__UINT32 m_status_bits = 0;
483 ON__UINT32 m_reserved = 0;
486 ON__UINT8 m_buffer[64];
487 ON__UINT32 m_bit_count[2];
488 ON__UINT32 m_state[5];
ON_UUID is a 16 byte universally unique identifier.
Definition: opennurbs_uuid.h:32
static const ON_SHA1_Hash EmptyContentHash
Definition: opennurbs_sha1.h:23
Definition: opennurbs_sha1.h:19
Definition: opennurbs_string.h:2020
Definition: opennurbs_point.h:277
Definition: opennurbs_point.h:648
Definition: opennurbs_bounding_box.h:25
Definition: opennurbs_string.h:852
ON_SHA1 is a small class for calculating the SHA-1 hash of a sequence of bytes. It may be use increme...
Definition: opennurbs_sha1.h:242
Definition: opennurbs_string.h:3739
Definition: opennurbs_textlog.h:20
Definition: opennurbs_archive.h:1783
Definition: opennurbs_point.h:460
static const ON_SHA1_Hash ZeroDigest
Definition: opennurbs_sha1.h:22
Definition: opennurbs_point.h:839
Definition: opennurbs_point.h:1152
Definition: opennurbs_file_utilities.h:1125