processCtr static method
Implementation
static BuBytes processCtr({
required List<int> key,
required List<int> iv,
required List<int> data,
}) {
final ctr = blockchainUtils.api.blockCipher.aesCtr(key, iv);
// final CTR ctr = CTR(AES(key), iv);
final xor = BuBytes.fill(data.length, 0);
ctr.process(data, xor);
ctr.clean();
return xor;
}