encrypt method
Cifra plaintext e retorna EncryptedPayload.
O campo tag do payload é vazio — CTR não produz MAC.
Implementation
EncryptedPayload encrypt(List<int> plaintext) {
_validate();
return EncryptedPayload(
algorithm: 'aes-ctr',
ciphertext: Uint8List.fromList(_ctr(plaintext)),
key: key,
tag: Uint8List(0), // CTR não produz tag de autenticação
nonce: initialCounterBlock,
aad: Uint8List(0),
);
}