PaddedBlockCipherImpl class

The standard implementation of PaddedBlockCipher.

Implemented types

Constructors

PaddedBlockCipherImpl(Padding padding, BlockCipher cipher)

Properties

algorithmName String
Get this algorithm's standard name.
no setteroverride
blockSize int
Get this ciphers's block size.
no setteroverride
cipher BlockCipher
Get the underlying BlockCipher used by this cipher.
final
hashCode int
The hash code for this object.
no setterinherited
padding Padding
Get the underlying Padding used by this cipher.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

doFinal(Uint8List inp, int inpOff, Uint8List out, int outOff) int
Process the last block of data given by inp and starting at offset inpOff and pad it as explained in this interface's description.
override
init(bool forEncryption, covariant PaddedBlockCipherParameters<CipherParameters?, 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.
override
processBlock(Uint8List inp, int inpOff, Uint8List out, int outOff) int
Process a whole block of data given by inp and starting at offset inpOff.
override
reset() → void
Reset the cipher to its original state.
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