ChaCha20 class

Implementation of Daniel J. Bernstein's ChaCha20 stream cipher, Snuffle 2005.

Inheritance
Implementers

Constructors

ChaCha20.new()
ChaCha20.fromRounds(int rounds)

Properties

algorithmName String
Get this algorithm's standard name.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
rounds int
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

generateKeyStream(Uint8List output) → void
init(bool forEncryption, covariant ParametersWithIV<KeyParameter> params) → void
Init the cipher 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.
override
process(Uint8List data) Uint8List
Метод для шифрования/дешифрования массива байтов
override
processBytes(Uint8List inp, int inpOff, int len, Uint8List out, int outOff) → void
Process len bytes of data given by inp and starting at offset inpOff. The resulting cipher text is put in out beginning at position outOff.
override
reset() → void
Reset the cipher to its original state.
override
returnByte(int inp) int
Process one byte of data given by inp and return its encrypted value.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

STATE_SIZE → const int