Feature/6400 include iv in document mac

this could be maybe less redundant if you compare the set of keys against a expected set