SM3Digest Class

Implementation of Chinese SM3 digest as described at http://tools.ietf.org/html/draft-shen-sm3-hash-00 and at .... ( Chinese PDF )

Definition

Namespace: Org.BouncyCastle.Crypto.Digests
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public class SM3Digest : GeneralDigest
Inheritance
Object    GeneralDigest    SM3Digest

Remarks

The specification says "process a bit stream", but this is written to process bytes in blocks of 4, meaning this will process 32-bit word groups. But so do also most other digest specifications, including the SHA-256 which was a origin for this specification.

Constructors

SM3Digest Standard constructor
SM3Digest(SM3Digest) Copy constructor. This will copy the state of the provided message digest.

Properties

Methods

BlockUpdate(ReadOnlySpanByte)
(Inherited from GeneralDigest)
BlockUpdate(Byte, Int32, Int32)
(Inherited from GeneralDigest)
Copy
(Overrides GeneralDigestCopy)
CopyIn
(Inherited from GeneralDigest)
DoFinal(SpanByte)
(Overrides GeneralDigestDoFinal(SpanByte))
DoFinal(Byte, Int32)
(Overrides GeneralDigestDoFinal(Byte, Int32))
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Finish
(Inherited from GeneralDigest)
GetByteLength
(Inherited from GeneralDigest)
GetDigestSize
(Overrides GeneralDigestGetDigestSize)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Reset reset the chaining variables
(Overrides GeneralDigestReset)
Reset(IMemoable)
(Overrides GeneralDigestReset(IMemoable))
ToStringReturns a string that represents the current object.
(Inherited from Object)
Update
(Inherited from GeneralDigest)

See Also