use defaultSampleInfoSize if there is no subsample encryption
set trun version to 1
encrypt decrypt example