Click or drag to resize

CRC32 Class

Class for calculation CRC32 checksums.
Inheritance Hierarchy

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2022.1.1.0 (2022.1.1.0)
Syntax
C#
public class CRC32 : HashAlgorithm

The CRC32 type exposes the following members.

Constructors
  NameDescription
Public methodCRC32
Creates a CRC32 object using the DefaultPolynomial
Public methodCRC32(UInt32)
Creates a CRC32 object using the specified Creates a CRC32 object
Public methodCRC32(UInt32, Boolean)
Construct the
Top
Properties
  NameDescription
Public propertyStatic memberAutoCache
Gets or sets the auto-cache setting of this class.
Public propertyCanReuseTransform
Gets a value indicating whether the current transform can be reused.
(Inherited from HashAlgorithm.)
Public propertyCanTransformMultipleBlocks
When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed.
(Inherited from HashAlgorithm.)
Public propertyStatic memberDefaultPolynomial
Returns the default polynomial
Public propertyHash
Gets the value of the computed hash code.
(Inherited from HashAlgorithm.)
Public propertyHashSize
Gets the size, in bits, of the computed hash code.
(Inherited from HashAlgorithm.)
Public propertyInputBlockSize
When overridden in a derived class, gets the input block size.
(Inherited from HashAlgorithm.)
Public propertyOutputBlockSize
When overridden in a derived class, gets the output block size.
(Inherited from HashAlgorithm.)
Top
Methods
  NameDescription
Protected methodStatic memberBuildCRC32Table
Builds a crc32 table given a polynomial
Public methodClear
Releases all resources used by the HashAlgorithm class.
(Inherited from HashAlgorithm.)
Public methodStatic memberClearCache
Public methodComputeHash(Byte)
Overloaded. Computes the hash value for the input data.
Public methodComputeHash(Stream)
Computes the hash value for the specified Stream.
Public methodComputeHash(Byte, Int32, Int32)
Overloaded. Computes the hash value for the input data.
Public methodDispose
Releases all resources used by the current instance of the HashAlgorithm class.
(Inherited from HashAlgorithm.)
Protected methodDispose(Boolean)
Releases the unmanaged resources used by the HashAlgorithm and optionally releases the managed resources.
(Inherited from HashAlgorithm.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected method[M:System.Security.Cryptography.HashAlgorithm.HashCore(System.ReadOnlySpan`1)] (Inherited from HashAlgorithm.)
Protected methodHashCore(Byte, Int32, Int32)
Protected methodHashFinal
Public methodInitialize
Initializes an implementation of HashAlgorithm.
(Overrides HashAlgorithmInitialize.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodStatic memberReflect
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransformBlock
Computes the hash value for the specified region of the input byte array and copies the specified region of the input byte array to the specified region of the output byte array.
(Inherited from HashAlgorithm.)
Public methodTransformFinalBlock
Computes the hash value for the specified region of the specified byte array.
(Inherited from HashAlgorithm.)
Public method[M:System.Security.Cryptography.HashAlgorithm.TryComputeHash(System.ReadOnlySpan`1,System.Void,System.Byte)] (Inherited from HashAlgorithm.)
Protected method[M:System.Security.Cryptography.HashAlgorithm.TryHashFinal(System.Span`1,System.Void)] (Inherited from HashAlgorithm.)
Top
Fields
  NameDescription
Protected fieldHashSizeValue
Represents the size, in bits, of the computed hash code.
(Inherited from HashAlgorithm.)
Protected fieldHashValue
Represents the value of the computed hash code.
(Inherited from HashAlgorithm.)
Protected fieldState
Represents the state of the hash computation.
(Inherited from HashAlgorithm.)
Top
Extension Methods
See Also