Skip to content

SHA1OpenNURBS

Public Class

Provides the OpenNURBS implementation of SHA1.

This class is provided only with the purpose of hashing. It is not meant to be used for any cryptographic purpose.

Inheritance Hierarchy

System.Object
System.Security.Cryptography.HashAlgorithm
System.Security.Cryptography.SHA1
Rhino.FileIO.SHA1OpenNURBS

Namespace: Rhino.FileIO

Assembly: RhinoCommon (in RhinoCommon.dll)

Syntax

public sealed class SHA1OpenNURBS : SHA1

The SHA1OpenNURBS type exposes the following members.

Constructors

Name

Description


Public Method

Constructs a new instance of the SHA1 algorithm.


Properties

Name

Description


Public Property

CanReuseTransform

Gets a value indicating whether the current transform can be reused.

(Inherited from HashAlgorithm.)


Public Property

CanTransformMultipleBlocks

When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed.

(Inherited from HashAlgorithm.)


Public Property

Hash

Gets the value of the computed hash code.

(Inherited from HashAlgorithm.)


Public Property

HashSize

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

(Inherited from HashAlgorithm.)


Public Property

InputBlockSize

When overridden in a derived class, gets the input block size.

(Inherited from HashAlgorithm.)


Public Property

OutputBlockSize

When overridden in a derived class, gets the output block size.

(Inherited from HashAlgorithm.)


Methods

Name

Description


Public Method

Clear

Releases all resources used by the HashAlgorithm class.

(Inherited from HashAlgorithm.)


Public Method

ComputeHash(.Byte.)

Computes the hash value for the specified byte array.

(Inherited from HashAlgorithm.)


Public Method

ComputeHash(Stream)

Computes the hash value for the specified Stream object.

(Inherited from HashAlgorithm.)


Public Method

ComputeHash(.Byte., Int32, Int32)

Computes the hash value for the specified region of the specified byte array.

(Inherited from HashAlgorithm.)


Public Method

Dispose

Releases all resources used by the current instance of the HashAlgorithm class.

(Inherited from HashAlgorithm.)


Public Method

Equals

Determines whether the specified object is equal to the current object.

(Inherited from Object.)


Public Method
Static Member

Computes the SHA1 hash of a file system path, converted to UTF8.

These file system paths have identical values of FileSystemPathHash():

/x/y/z/name.ext

\x\y\z\name.ext

/x//y//z/name.ext

/x/y/a/b/c/../../../z/name.ext

/X/Y/Z/NAME.EXT (When ignoreCase is true)


Protected Method

Instructs the runtime to reclaim unmanaged resources if the developer forgot to call Dispose().

(Overrides Object.Finalize..)


Public Method

GetHashCode

Serves as the default hash function.

(Inherited from Object.)


Public Method

GetType

Gets the Type of the current instance.

(Inherited from Object.)


Public Method

Resets this instance of the algorithm, so that it can be used again. It is not required to call this method after creation.

(Overrides HashAlgorithm.Initialize..)


Public Method
Static Member

Computes the SHA1 hash of a string, converted to UTF8.


Public Method

ToString

Returns a string that represents the current object.

(Inherited from Object.)


Public Method

TransformBlock

Computes the hash value for the specified region of the input byte array and copies the specified region of the input byte array to the specified region of the output byte array.

(Inherited from HashAlgorithm.)


Public Method

TransformFinalBlock

Computes the hash value for the specified region of the specified byte array.

(Inherited from HashAlgorithm.)