In verify, only compare to supplied amount of data.

If the buffer size differs from the device image size
in verify, only compare the first X bytes.
Do not pad, because padding may differ among devices.

Signed-off-by: Michael Buesch <m@bues.ch>