Show / Hide Table of Contents

    Class CyclicRedundancyCheck

    Represents the abstract class from which all implementations of the CRC hash algorithm inherit.

    Inheritance
    System.Object
    System.Security.Cryptography.HashAlgorithm
    CyclicRedundancyCheck
    CyclicRedundancyCheck32
    Implements
    System.IDisposable
    Inherited Members
    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)
    System.Security.Cryptography.HashAlgorithm.HashCore(System.Byte[], System.Int32, System.Int32)
    System.Security.Cryptography.HashAlgorithm.HashFinal()
    System.Security.Cryptography.HashAlgorithm.HashSize
    Namespace: Cuemon.Security.Cryptography
    Assembly: Cuemon.Security.dll
    Syntax
    public abstract class CyclicRedundancyCheck : HashAlgorithm, IDisposable

    Constructors

    | Improve this Doc

    CyclicRedundancyCheck()

    Initializes a new instance of the CyclicRedundancyCheck class.

    Declaration
    protected CyclicRedundancyCheck()
    | Improve this Doc

    CyclicRedundancyCheck(PolynomialRepresentation)

    Initializes a new instance of the CyclicRedundancyCheck class.

    Declaration
    protected CyclicRedundancyCheck(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 abstract long DefaultSeed { get; }
    Property Value
    Type Description
    System.Int64

    The CRC default seed value.

    | Improve this Doc

    HashCoreResult

    Gets or sets the resolved hash result.

    Declaration
    protected long HashCoreResult { get; set; }
    Property Value
    Type Description
    System.Int64

    The resolved hash result.

    | Improve this Doc

    LookupTable

    Gets the lookup table for the associated CRC implementation.

    Declaration
    protected IList<long> LookupTable { get; }
    Property Value
    Type Description
    System.Collections.Generic.IList<System.Int64>

    The lookup table for the associated CRC implementation.

    | Improve this Doc

    Polynomial

    Gets the CRC polynomial hexadecimal value equal to CRC implementation and Representation.

    Declaration
    public long Polynomial { get; protected set; }
    Property Value
    Type Description
    System.Int64

    The CRC polynomial hexadecimal value equal to CRC implementation and Representation.

    | Improve this Doc

    Representation

    Gets the CRC polynomial generator representation.

    Declaration
    public PolynomialRepresentation Representation { get; }
    Property Value
    Type Description
    PolynomialRepresentation

    The CRC polynomial generator representation.

    Methods

    | Improve this Doc

    Initialize()

    Initializes an implementation of the System.Security.Cryptography.HashAlgorithm class.

    Declaration
    public override sealed void Initialize()
    Overrides
    System.Security.Cryptography.HashAlgorithm.Initialize()
    | Improve this Doc

    InitializePolynomial()

    Initializes the implementation of the polynomial representation details.

    Declaration
    protected abstract void InitializePolynomial()
    | Improve this Doc

    InitializePolynomialLookupTable(Byte, UInt16)

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

    Declaration
    protected abstract 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.

    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