EncryptedMash::Version1: Simplify rescue duplicated code