initMAC method

void initMAC()

Implementation

void initMAC() {
  var firstBlock = Uint8List(64);
  try {
    chacha20.processBytes(firstBlock, 0, 64, firstBlock, 0);
    poly1305.init(KeyParameter.offset(firstBlock, 0, 32));
  } finally {
    for (var i = 0; i < firstBlock.length; i++) {
      firstBlock[i] = 0;
    }
  }
}