SICStreamCipher class

Implementation of SIC mode of operation as a StreamCipher. This implementation uses the IV as the initial nonce value and keeps incrementing it by 1 for every block. The counter may overflow and rotate, and that would cause a two-time-pad error, but this is so unlikely to happen for usual block sizes that we don't check for that event. It is the responsibility of the caller to make sure the counter does not overflow.

Implemented types
Implementers

Constructors

SICStreamCipher(BlockCipher underlyingCipher)

Properties

algorithmName String
Get this algorithm's standard name.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
underlyingCipher BlockCipher
final

Methods

init(bool forEncryption, covariant ParametersWithIV<CipherParameters?> 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.
inherited
process(Uint8List data) Uint8List
Process a whole block of data at once, returning the result in a byte array.
inherited
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

Static Properties

factoryConfig → FactoryConfig
Intended for internal use.
final