Click or drag to resize

SHA1OpenNURBS 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

Namespace:  Rhino.FileIO
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public sealed class SHA1OpenNURBS : SHA1

The SHA1OpenNURBS type exposes the following members.

Constructors
  NameDescription
Public methodSHA1OpenNURBS
Constructs a new instance of the SHA1 algorithm.
Top
Properties
  NameDescription
Public propertyCanReuseTransform
Gets a value indicating whether the current transform can be reused.
(Inherited from HashAlgorithm.)
Public propertyCanTransformMultipleBlocks
When overridden in a derived class, gets a value indicating whether multiple blocks can be transformed.
(Inherited from HashAlgorithm.)
Public propertyHash
Gets the value of the computed hash code.
(Inherited from HashAlgorithm.)
Public propertyHashSize
Gets the size, in bits, of the computed hash code.
(Inherited from HashAlgorithm.)
Public propertyInputBlockSize
When overridden in a derived class, gets the input block size.
(Inherited from HashAlgorithm.)
Public propertyOutputBlockSize
When overridden in a derived class, gets the output block size.
(Inherited from HashAlgorithm.)
Top
Methods
  NameDescription
Public methodClear
Releases all resources used by the HashAlgorithm class.
(Inherited from HashAlgorithm.)
Public methodComputeHash(Byte)
Computes the hash value for the specified byte array.
(Inherited from HashAlgorithm.)
Public methodComputeHash(Stream)
Computes the hash value for the specified Stream object.
(Inherited from HashAlgorithm.)
Public methodComputeHash(Byte, Int32, Int32)
Computes the hash value for the specified region of the specified byte array.
(Inherited from HashAlgorithm.)
Public methodDispose
Releases all resources used by the current instance of the HashAlgorithm class.
(Inherited from HashAlgorithm.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodStatic memberFileSystemPathHash
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 methodFinalize
Instructs the runtime to reclaim unmanaged resources if the developer forgot to call Dispose().
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Resets this instance of the algorithm, so that it can be used again. It is not required to call this method after creation.
(Overrides HashAlgorithmInitialize.)
Public methodStatic memberStringHash
Computes the SHA1 hash of a string, converted to UTF8.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransformBlock
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 methodTransformFinalBlock
Computes the hash value for the specified region of the specified byte array.
(Inherited from HashAlgorithm.)
Top
See Also