@david_chisnall I am not a certified cryptographer but adding error correction requires redundancy one way or another, so doing it after encryption is simpler and faster (hw can deal with it easily). Doing it as part of the cipher sounds like a recipe for a weak cipher and probably a good way to create side-channels that will quickly compromise the private key.
Do not recommend.