DS3 .NET Software Development Kit  3.0.0
Provides access to the Spectra Logic DS3 API through .NET.
Ds3.Models.Crc32 Class Reference

Implements a 32-bit CRC hash algorithm More...

Inheritance diagram for Ds3.Models.Crc32:
Ds3.Models.CrcHasher

Static Public Member Functions

static new Crc32 Create ()
 
- Static Public Member Functions inherited from Ds3.Models.CrcHasher
static UInt32 Compute (byte[] buffer)
 
static UInt32 Compute (UInt32 seed, byte[] buffer)
 
static UInt32 Compute (UInt32 polynomial, UInt32 seed, byte[] buffer)
 

Public Attributes

new const UInt32 DefaultPolynomial = 0xedb88320u
 
- Public Attributes inherited from Ds3.Models.CrcHasher
const UInt32 DefaultPolynomial = 0x82F63B78
 
const UInt32 DefaultSeed = 0xffffffffu
 

Additional Inherited Members

- Public Member Functions inherited from Ds3.Models.CrcHasher
 CrcHasher (UInt32 polynomial, UInt32 seed)
 
override void Initialize ()
 
- Protected Member Functions inherited from Ds3.Models.CrcHasher
override void HashCore (byte[] array, int ibStart, int cbSize)
 
override byte[] HashFinal ()
 
- Protected Attributes inherited from Ds3.Models.CrcHasher
UInt32 polynomial
 
- Properties inherited from Ds3.Models.CrcHasher
override int HashSize [get]
 

Detailed Description

Implements a 32-bit CRC hash algorithm

Crc32 should only be used for backward compatibility with older file formats and algorithms. It is not secure enough for new applications. If you need to call multiple times for the same data either use the HashAlgorithm interface or remember that the result of one Compute call needs to be ~ (XOR) before being passed in as the seed for the next Compute call.