Show / Hide Table of Contents

    Class CyclicRedundancyCheck32

    Computes the CRC32 hash value for the input data using the implementation provided by the cyclic redundancy check class (CRC). This class cannot be inherited.

    Inheritance
    System.Object
    System.Security.Cryptography.HashAlgorithm
    CyclicRedundancyCheck
    CyclicRedundancyCheck32
    Implements
    System.IDisposable
    Inherited Members
    CyclicRedundancyCheck.Initialize()
    CyclicRedundancyCheck.HashCoreResult
    CyclicRedundancyCheck.LookupTable
    CyclicRedundancyCheck.Representation
    CyclicRedundancyCheck.Polynomial
    System.Security.Cryptography.HashAlgorithm.ComputeHash(System.Byte[])
    System.Security.Cryptography.HashAlgorithm.ComputeHash(System.Byte[], System.Int32, System.Int32)
    System.Security.Cryptography.HashAlgorithm.ComputeHash(System.IO.Stream)
    System.Security.Cryptography.HashAlgorithm.Dispose()
    System.Security.Cryptography.HashAlgorithm.Dispose(System.Boolean)
    Namespace: Cuemon.Security.Cryptography
    Assembly: Cuemon.Security.dll
    Syntax
    public sealed class CyclicRedundancyCheck32 : CyclicRedundancyCheck, IDisposable

    Constructors

    | Improve this Doc

    CyclicRedundancyCheck32()

    Initializes a new instance of the CyclicRedundancyCheck32 class.

    Declaration
    public CyclicRedundancyCheck32()
    | Improve this Doc

    CyclicRedundancyCheck32(PolynomialRepresentation)

    Initializes a new instance of the CyclicRedundancyCheck class.

    Declaration
    public CyclicRedundancyCheck32(PolynomialRepresentation representation)
    Parameters
    Type Name Description
    PolynomialRepresentation representation

    The CRC generator polynomial representation.

    Properties

    | Improve this Doc

    DefaultSeed

    Gets the CRC default seed value.

    Declaration
    public override long DefaultSeed { get; }
    Property Value
    Type Description
    System.Int64

    The CRC default seed value.

    Overrides
    CyclicRedundancyCheck.DefaultSeed
    | Improve this Doc

    HashSize

    Gets the size, in bits, of the computed hash code.

    Declaration
    public override int HashSize { get; }
    Property Value
    Type Description
    System.Int32

    The size of the hash.

    Overrides
    System.Security.Cryptography.HashAlgorithm.HashSize

    Methods

    | Improve this Doc

    HashCore(Byte[], Int32, Int32)

    When overridden in a derived class, routes data written to the object into the hash algorithm for computing the hash.

    Declaration
    protected override void HashCore(byte[] array, int ibStart, int cbSize)
    Parameters
    Type Name Description
    System.Byte[] array

    The input to compute the hash code for.

    System.Int32 ibStart

    The offset into the byte array from which to begin using data.

    System.Int32 cbSize

    The number of bytes in the byte array to use as data.

    Overrides
    System.Security.Cryptography.HashAlgorithm.HashCore(System.Byte[], System.Int32, System.Int32)
    | Improve this Doc

    HashFinal()

    When overridden in a derived class, finalizes the hash computation after the last data is processed by the cryptographic stream object.

    Declaration
    protected override byte[] HashFinal()
    Returns
    Type Description
    System.Byte[]

    The computed hash code.

    Overrides
    System.Security.Cryptography.HashAlgorithm.HashFinal()
    | Improve this Doc

    InitializePolynomial()

    Initializes the implementation of the polynomial representation details.

    Declaration
    protected override void InitializePolynomial()
    Overrides
    CyclicRedundancyCheck.InitializePolynomial()
    Exceptions
    Type Condition
    System.InvalidOperationException

    The Representation property has an invalid value.

    | Improve this Doc

    InitializePolynomialLookupTable(Byte, UInt16)

    Initializes the implementation details of a CyclicRedundancyCheck related polynomial lookup table.

    Declaration
    protected override void InitializePolynomialLookupTable(byte currentBit, ushort currentTableIndex)
    Parameters
    Type Name Description
    System.Byte currentBit

    The current bit ranging from 0 to 7.

    System.UInt16 currentTableIndex

    The current index of the associated polynomial LookupTable ranging from 0 to 255.

    Overrides
    CyclicRedundancyCheck.InitializePolynomialLookupTable(Byte, UInt16)
    Remarks

    This method is - on first run - invoked 8 times per entry in the associated polynomial LookupTable, given a total of 2048 times.

    Implements

    System.IDisposable

    Extension Methods

    ConverterExtensions.ParseWith<TSource, TResult>(TSource, Func<TSource, TResult>)
    ConverterExtensions.ParseWith<TSource, T, TResult>(TSource, Func<TSource, T, TResult>, T)
    ConverterExtensions.ParseWith<TSource, T1, T2, TResult>(TSource, Func<TSource, T1, T2, TResult>, T1, T2)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, TResult>(TSource, Func<TSource, T1, T2, T3, TResult>, T1, T2, T3)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, TResult>(TSource, Func<TSource, T1, T2, T3, T4, TResult>, T1, T2, T3, T4)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, TResult>, T1, T2, T3, T4, T5)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, TResult>, T1, T2, T3, T4, T5, T6)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, TResult>, T1, T2, T3, T4, T5, T6, T7)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, TResult>, T1, T2, T3, T4, T5, T6, T7, T8)
    ConverterExtensions.ParseWith<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>(TSource, Func<TSource, T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult>, T1, T2, T3, T4, T5, T6, T7, T8, T9)
    ConverterExtensions.As<TResult>(Object)
    ConverterExtensions.As<TResult>(Object, TResult)
    ConverterExtensions.As<TResult>(Object, TResult, IFormatProvider)
    DelegateUtilityExtensions.Wrap<TResult>(TResult)
    DelegateUtilityExtensions.DynamicWrap<TResult>(TResult)
    TweakerExtensions.Adjust<T>(T, Func<T, T>)
    TypeUtilityExtensions.Is<T>(Object)
    TypeUtilityExtensions.IsNot<T>(Object)
    TypeUtilityExtensions.IsNullable<T>(T)
    WrapperExtensions.UseWrapper<T>(T, Action<IDictionary<String, Object>>)
    WrapperExtensions.UseWrapper<T>(T, MemberInfo, Action<IDictionary<String, Object>>)
    EnumerableUtilityExtensions.Yield<TSource>(TSource)
    HashUtilityExtensions.ComputeHash(Object, Action<HashOptions>)
    HmacUtilityExtensions.ComputeKeyedHash(Object, Byte[], Action<KeyedHashOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX