HMac class
HMAC implementation based on RFC2104
H(K XOR opad, H(K XOR ipad, text))
- Implemented types
Constructors
- HMac(Digest _digest, int _blockLength)
- HMac.withDigest(Digest _digest)
Properties
- algorithmName → String
-
Get this algorithm's standard name.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- macSize → int
-
Get this MAC's output size.
no setteroverride
- 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.override -
init(
covariant KeyParameter 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).override -
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.inherited -
reset(
) → void -
Reset the MAC to its original state.
override
-
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.override -
updateByte(
int inp) → void -
Add one byte of data to the MAC input.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- factoryConfig → FactoryConfig
-
final