CBC class

CBC mode over a BuBlockCipher. Stateful: encrypt/decrypt each handle one block and carry the chaining value forward to the next call.

Implemented types

Constructors

CBC(BuBlockCipher cipher, List<int> iv)

Properties

blockSize → int
Size of the data block in bytes that the underlying cipher operates on.
no setteroverride
cipher → BuBlockCipher
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() → BlockCipherCbc
Drops the chaining state. The instance is unusable afterwards.
override
clone() → CBC
A new CBC resuming from this one's current chaining value. NOTE: the underlying cipher instance is shared, not copied.
decrypt(List<int> input, [List<int>? dst]) → BuBytes
Decrypts exactly one blockSize-byte block.
override
encrypt(List<int> src, [List<int>? dst]) → BuBytes
Encrypts exactly one blockSize-byte block.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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