C# Class Org.BouncyCastle.Crypto.Digests.Sha3Digest

Implementation of SHA-3 based on following KeccakNISTInterface.c from http://keccak.noekeon.org/
Following the naming conventions used in the C source code to enable easy review of the implementation.
Inheritance: IDigest
ファイルを表示 Open project: nonorganic/dssnet Class Usage Examples

Public Methods

Method Description
BlockUpdate ( byte input, int inOff, int len ) : void
DoFinal ( byte output, int outOff ) : int
GetByteLength ( ) : int
GetDigestSize ( ) : int
Reset ( ) : void
Sha3Digest ( ) : System
Sha3Digest ( Sha3Digest source ) : System
Sha3Digest ( int bitLength ) : System
Update ( byte input ) : void

Private Methods

Method Description
Absorb ( byte data, int off, long databitlen ) : void
AbsorbQueue ( ) : void
Chi ( ulong A ) : void
ClearDataQueueSection ( int off, int len ) : void
DoUpdate ( byte data, int off, long databitlen ) : void
FromBytesToWords ( ulong stateAsWords, byte state ) : void
FromWordsToBytes ( byte state, ulong stateAsWords ) : void
Init ( int bitLength ) : void
InitSponge ( int rate, int capacity ) : void
Iota ( ulong A, int indexRound ) : void
KeccakAbsorb ( byte byteState, byte data, int dataInBytes ) : void
KeccakExtract ( byte byteState, byte data, int laneCount ) : void
KeccakExtract1024bits ( byte byteState, byte data ) : void
KeccakInitializeRhoOffsets ( ) : int[]
KeccakInitializeRoundConstants ( ) : ulong[]
KeccakPermutation ( byte state ) : void
KeccakPermutationAfterXor ( byte state, byte data, int dataLengthInBytes ) : void
KeccakPermutationOnWords ( ulong state ) : void
PadAndSwitchToSqueezingPhase ( ) : void
Pi ( ulong A ) : void
Rho ( ulong A ) : void
Squeeze ( byte output, int offset, long outputLength ) : void
Theta ( ulong A ) : void

Method Details

BlockUpdate() public method

public BlockUpdate ( byte input, int inOff, int len ) : void
input byte
inOff int
len int
return void

DoFinal() public method

public DoFinal ( byte output, int outOff ) : int
output byte
outOff int
return int

GetByteLength() public method

public GetByteLength ( ) : int
return int

GetDigestSize() public method

public GetDigestSize ( ) : int
return int

Reset() public method

public Reset ( ) : void
return void

Sha3Digest() public method

public Sha3Digest ( ) : System
return System

Sha3Digest() public method

public Sha3Digest ( Sha3Digest source ) : System
source Sha3Digest
return System

Sha3Digest() public method

public Sha3Digest ( int bitLength ) : System
bitLength int
return System

Update() public method

public Update ( byte input ) : void
input byte
return void