BlockCipherApi class abstract interface

Constructs AES block ciphers and their modes (CBC, CTR, ECB).

Implementers

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 aesKey and 16-byte iv. Throws on invalid lengths.
aesCtr(List<int> key, List<int> counter) → BuAesCtr
Creates CTR mode with 16, 24 or 32-byte key and 16-byte counter. Throws on invalid lengths.
aesEcb(List<int> key, {PaddingAlgorithm? padding = PaddingAlgorithm.pkcs7}) → BuAesEcb
Creates ECB mode with 16, 24 or 32-byte key and padding (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