SM4Engine Class

SM4 Block Cipher - SM4 is a 128 bit block cipher with a 128 bit key.

Definition

Namespace: Org.BouncyCastle.Crypto.Engines
Assembly: BouncyCastle.Cryptography (in BouncyCastle.Cryptography.dll) Version: 2.3.0-beta.187+d6da5648ae
public class SM4Engine : IBlockCipher
Inheritance
Object    SM4Engine
Implements
IBlockCipher

Remarks

The implementation here is based on the document http://eprint.iacr.org/2008/329.pdf by Whitfield Diffie and George Ledin, which is a translation of Prof. LU Shu-wang's original standard.

Constructors

SM4EngineInitializes a new instance of the SM4Engine class

Properties

Methods

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)
GetBlockSize 
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Init 
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ProcessBlock(ReadOnlySpanByte, SpanByte) 
ProcessBlock(Byte, Int32, Byte, Int32) 
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also