Bugfix: Don't crash on truncated key or config file

Restic previously crashed with a slice bounds panic when the repository
contained a key or config file that was shorter than the encryption overhead,
for example after an upload was interrupted. Since every command has to read
a key file, the whole repository became unusable until the file was removed.

This has now been fixed, and restic instead reports that the file is too short.

https://github.com/restic/restic/pull/21977
