Checking the padding in the ValidateMac method.
Generating an IV from a counter instead from RandomNumberGenerator for better performance.