CTR class

Counter (CTR) mode for block ciphers.

Constructors

CTR(BlockCipher cipher, List<int> iv)
Creates a CTR instance with the given block cipher and initialization vector (IV).

Properties

blockSize int?
Returns the block size of the block cipher, or null if not set.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clean() CTR
Clears internal state and data in the Counter (CTR) mode instance for security and memory management.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCipher(BlockCipher cipher, List<int>? iv) CTR
Sets the block cipher and initialization vector (IV) for the Counter (CTR) mode.
stream(List<int> dst) → void
Generates and writes keystream to the destination.
streamXOR(List<int> src, List<int> dst) → void
XORs source data with the keystream and writes the result to the destination.
toString() String
A string representation of this object.
inherited

Operators

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