CSHAKEDigest class
implementation of SHAKE 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
-
- Object
- SHAKEDigest
- CSHAKEDigest
- Implemented types
Constructors
- CSHAKEDigest([int bitLength = 256, Uint8List? N, Uint8List? S])
Properties
- algorithmName → String
-
Get this algorithm's standard name.
no setteroverride
- byteLength → int
-
Return the size in bytes of the internal buffer the digest applies
it's compression function to.
no setterinherited
- dataQueue → Uint8List
-
dataQueue intended for use by subclasses only.
no setterinherited
- digestSize → int
-
Get this digest's output size in bytes
no setterinherited
- fixedOutputLength ↔ int
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- rate → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- squeezing → bool
-
squeezing intended for use by subclasses only.
no setterinherited
Methods
-
absorb(
int data) → void -
inherited
-
absorbBits(
int data, int bits) → void -
inherited
-
absorbRange(
Uint8List data, int off, int len) → void -
inherited
-
chi(
Register64List A) → void -
inherited
-
doFinal(
Uint8List out, int outOff) → int -
Store the digest of previously given data in buffer
out
starting at offsetoutOff
. This method returns the size of the digest.inherited -
doFinalPartial(
Uint8List out, int outOff, int outLen, int partialByte, int partialBits) → int -
inherited
-
doFinalRange(
Uint8List out, int outOff, int outLen) → int -
inherited
-
doOutput(
Uint8List out, int outOff, int outLen) → int -
override
-
init(
int bitlen) → void -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pi(
Register64List A) → void -
inherited
-
process(
Uint8List data) → Uint8List -
Process a whole block of
data
at once, returning the result in a new byte array.inherited -
reset(
) → void - Reset the digest to its original state.
-
rho(
Register64List A) → void -
inherited
-
squeeze(
Uint8List? output, int? offset, int outputLength) → void -
inherited
-
theta(
Register64List A) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
Uint8List inp, int inpOff, int len) → void -
Add
len
bytes of data contained ininp
, starting at positioninpOff
ti the digested input. -
updateByte(
int inp) → void -
Add one byte of data to the digested input.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- factoryConfig → FactoryConfig
-
Intended for internal use.
final