storage: Need to properly read the crypt offset value
storage: Need to properly read the crypt offset value

Commit id 'a48c7141' altered how to determine if a volume was encrypted
by adding a peek at an offset into the file at a specific buffer location.
Unfortunately, all that was compared was the first "char" of the buffer
against the expect "int" value.

Restore the virReadBufInt32BE to get the complete field in order to
compare against the expected value from the qcow2EncryptionInfo or
qcow1EncryptionInfo "modeValue" field.

This restores the capability to create a volume with encryption, then
refresh the pool, and still find the encryption for the volume.

fabianfreyer/libvirt,nertpinx/libvirt,datto/libvirt,andreabolognani/libvirt,datto/libvirt,taget/libvirt,zippy2/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,olafhering/libvirt,VenkatDatta/libvirt,VenkatDatta/libvirt,fabianfreyer/libvirt,datto/libvirt,eskultety/libvirt,eskultety/libvirt,eskultety/libvirt,eskultety/libvirt,taget/libvirt,olafhering/libvirt,datto/libvirt,jardasgit/libvirt,jardasgit/libvirt,olafhering/libvirt,andreabolognani/libvirt,zippy2/libvirt,VenkatDatta/libvirt,libvirt/libvirt,taget/libvirt,crobinso/libvirt,jardasgit/libvirt,andreabolognani/libvirt,VenkatDatta/libvirt,taget/libvirt,zippy2/libvirt,crobinso/libvirt,libvirt/libvirt,libvirt/libvirt,andreabolognani/libvirt,nertpinx/libvirt,crobinso/libvirt,jardasgit/libvirt,crobinso/libvirt,jfehlig/libvirt,datto/libvirt,nertpinx/libvirt,jfehlig/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,VenkatDatta/libvirt,taget/libvirt,eskultety/libvirt,nertpinx/libvirt,zippy2/libvirt,olafhering/libvirt,jardasgit/libvirt,andreabolognani/libvirt,libvirt/libvirt,jfehlig/libvirt,fabianfreyer/libvirt