Thanks, I have a out of date prod.keys in the switch folder (for testing), I removed keys.dat - so was expected an error.
I get the message - Error - failed to decrypt a file. make sure you have keys.dat. Anyway the app freezes at 25% because of this, which I figured it would. Would it be possible to quit trying to decrypt at this point to stop the app freezing. I know that sounds a bit anal, but if someone updates their firmware and the keys changed, and they tried to generate the patches - they might not know the keys are out of date, maybe add a message to re-dump their keys with lockpic_rmc or something. Also if decryption failed, temp folder remains in your apps folder, and when you re-try to make the patches it crashes Atmoshphere - maybe remove this folder if it exists before generating the patches.