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,
}) {
return api
.aesEcb(
key,
padding: padding?.connectorAlgorithm ?? BuPaddingAlgorithm.none,
)
.unwrapOrThrowCryptoError();
}