Mac class abstract
The interface that a MAC (message authentication code) conforms to.
Constructors
Properties
- algorithmName → String
-
Get this algorithm's standard name.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- macSize → int
-
Get this MAC's output size.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
doFinal(
Uint8List out, int outOff) → int -
Store the MAC of previously given data in buffer
out
starting at offsetoutOff
. This method returns the size of the digest. -
init(
CipherParameters params) → void -
Init the MAC with its initialization
params
. The type of CipherParameters depends on the algorithm being used (see the documentation of each implementation to find out more). -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
process(
Uint8List data) → Uint8List -
Process a whole block of
data
at once, returning the result in a new byte array. -
reset(
) → void - Reset the MAC to its original state.
-
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
to the MAC'ed input. -
updateByte(
int inp) → void - Add one byte of data to the MAC input.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited