Patch - when using encryption, app header should be copied after the
number of encBloks is known!

Signed-off-by: Bleska <blecha.jiri@gmail.com>