Crc32 Class

Implementation of the CRC-32 hash algorithm.

Definition

Namespace: KGySoft.Security.Cryptography
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
[CLSCompliantAttribute(false)]
public class Crc32 : HashAlgorithm
Inheritance
Object    HashAlgorithm    Crc32

Constructors

Crc32 Initializes a new instance of the Crc32 class with default settings.
Crc32(UInt32, UInt32, Boolean) Initializes a new instance of the Crc32 class.

Properties

HashSize Gets the size, in bits, of the computed hash code.
(Overrides HashAlgorithmHashSize)

Methods

CalculateHash(Byte, UInt32, UInt32) Computes the CRC-32 hash value for the specified byte array.
CalculateHash(String, Encoding, UInt32) Computes the CRC-32 hash value for the specified String.
CalculateHash(Byte, Int32, Int32, UInt32, UInt32) Computes the CRC-32 hash value for the specified byte array.
HashCore Computes the CRC-32 hash for the specified array.
(Overrides HashAlgorithmHashCore(Byte, Int32, Int32))
HashFinal Gets the final result of the computed CRC-32 hash as a byte array.
(Overrides HashAlgorithmHashFinal)
Initialize Resets internal state of the algorithm. Used internally.
(Overrides HashAlgorithmInitialize)

Fields

CastagnoliPolynomial The Castagnoli polynomial for the Crc32 hash algorithm (also known as CRC-32C). This field is constant.
KoopmanPolynomial The Koopman polynomial for the Crc32 hash algorithm (also known as CRC-32K). This field is constant.
StandardPolynomial The standard polynomial for the Crc32 hash algorithm. This field is constant.

Extension Methods

Convert Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions)
ConvertTTarget Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions)
In Gets whether item is among the elements of set.
See the Examples section of the generic InT(T, T) overload for an example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)

See Also