aesEcb method
Creates ECB mode with 16, 24 or 32-byte key and padding (PKCS7 default, null requires block-aligned input). Throws on invalid key length.
Implementation
@override
BuAesEcb aesEcb(
List<int> key, {
PaddingAlgorithm? padding = PaddingAlgorithm.pkcs7,
}) {
ApiValidate.oneOfLengths(
key,
AES.allowedKeysLength,
operation: "aesEcb",
name: "key",
);
return _inner.aesEcb(key, padding: padding);
}