KGy SOFT

Crc32 Class

KGy SOFT Core Libraries Help
Implementation of the CRC-32 hash algorithm.
Inheritance Hierarchy

SystemObject
  System.Security.CryptographyHashAlgorithm
    KGySoft.Security.CryptographyCrc32

Namespace:  KGySoft.Security.Cryptography
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.3.0
Syntax

[CLSCompliantAttribute(false)]
public class Crc32 : HashAlgorithm

The Crc32 type exposes the following members.

Constructors

  NameDescription
Public methodCrc32
Initializes a new instance of the Crc32 class with default settings.
Public methodCrc32(UInt32, UInt32, Boolean)
Initializes a new instance of the Crc32 class.
Top
Properties

  NameDescription
Public propertyHashSize
Gets the size, in bits, of the computed hash code.
(Overrides HashAlgorithmHashSize.)
Top
Methods

  NameDescription
Public methodStatic memberCalculateHash(Byte, UInt32, UInt32)
Computes the CRC-32 hash value for the specified byte array.
Public methodStatic memberCalculateHash(String, Encoding, UInt32)
Computes the CRC-32 hash value for the specified String.
Public methodStatic memberCalculateHash(Byte, Int32, Int32, UInt32, UInt32)
Computes the CRC-32 hash value for the specified byte array.
Protected methodHashCore
Computes the CRC-32 hash for the specified array.
(Overrides HashAlgorithmHashCore(Byte, Int32, Int32).)
Protected methodHashFinal
Gets the final result of the computed CRC-32 hash as a byte array.
(Overrides HashAlgorithmHashFinal.)
Public methodInitialize
Resets internal state of the algorithm. Used internally.
(Overrides HashAlgorithmInitialize.)
Top
Fields

  NameDescription
Public fieldStatic memberCastagnoliPolynomial
The Castagnoli polynomial for the Crc32 hash algorithm (also known as CRC-32C). This field is constant.
Public fieldStatic memberKoopmanPolynomial
The Koopman polynomial for the Crc32 hash algorithm (also known as CRC-32K). This field is constant.
Public fieldStatic memberStandardPolynomial
The standard polynomial for the Crc32 hash algorithm. This field is constant.
Top
Extension Methods

  NameDescription
Public Extension MethodConvert(Type, CultureInfo)Overloaded.
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.)
Public Extension MethodCode exampleConvertTTarget(CultureInfo)Overloaded.
Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)
Public Extension MethodIn (Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvert(Type, CultureInfo, Object)Overloaded.
Tries to convert an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)
Public Extension MethodTryConvertTTarget(TTarget)Overloaded.
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.)
Public Extension MethodTryConvertTTarget(CultureInfo, TTarget)Overloaded.
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.)
Top
See Also

Reference