Feature/6400 include iv in document mac

this also raises WrongMac