Hey guys, I just noticed that the MAC encoded are truncated here.
mac = hmac.new(mac_key, digestmod=hashlib.sha256)
mac.update(iv)
mac.update(ciphertext)
return ciphertext + mac.digest()[:10]
Curious about why we are not using the complete MAC here for better security?