Constructs AES block ciphers and their modes (CBC, CTR, ECB).
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
aes(
List< int> key) → BuBlockCipher -
Creates AES with 16, 24 or 32-byte
key. Throws on invalid key length. -
aesCbc(
List< int> aesKey, List<int> iv) → BuBlockCipherCbc -
Creates CBC mode with 16, 24 or 32-byte
aesKeyand 16-byteiv. Throws on invalid lengths. -
aesCtr(
List< int> key, List<int> counter) → BuAesCtr -
Creates CTR mode with 16, 24 or 32-byte
keyand 16-bytecounter. Throws on invalid lengths. -
aesEcb(
List< int> key, {PaddingAlgorithm? padding = PaddingAlgorithm.pkcs7}) → BuAesEcb -
Creates ECB mode with 16, 24 or 32-byte
keyandpadding(PKCS7 default, null requires block-aligned input). Throws on invalid key length. -
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