Poly1305 class

Constructors

Poly1305()
Poly1305.withCipher(BlockCipher? cipher)

Properties

algorithmName String
Get this algorithm's standard name.
no setteroverride
cipher BlockCipher?
getter/setter pair
currentBlock Uint8List
final
currentBlockOffset int
getter/setter pair
h0 int
getter/setter pair
h1 int
getter/setter pair
h2 int
getter/setter pair
h3 int
getter/setter pair
h4 int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
k0 int
getter/setter pair
k1 int
getter/setter pair
k2 int
getter/setter pair
k3 int
getter/setter pair
macSize int
Get this MAC's output size.
no setteroverride
r0 int
getter/setter pair
r1 int
getter/setter pair
r2 int
getter/setter pair
r3 int
getter/setter pair
r4 int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s1 int
getter/setter pair
s2 int
getter/setter pair
s3 int
getter/setter pair
s4 int
getter/setter pair
singleByte Uint8List
final

Methods

doFinal(Uint8List out, int outOff) int
Store the MAC of previously given data in buffer out starting at offset outOff. This method returns the size of the digest.
override
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).
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
processBlock() → void
reset() → void
Reset the MAC to its original state.
override
setKey(Uint8List key, Uint8List? nonce) → void
toString() String
A string representation of this object.
inherited
update(Uint8List inp, int inOff, int len) → void
Add len bytes of data contained in inp, starting at position inpOff 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

Static Methods

checkKey(Uint8List key) bool
checkMask(int b, int mask) bool
clamp(Uint8List key) → void

Constants

BLOCK_SIZE → const int
R_MASK_HIGH_4 → const int
R_MASK_LOW_2 → const int