In a stream cipher, the keystream is usually XORed with the plaintext, which is a 1-bit key-dependent bijective operation (ie, if the key bit is 0, 0->0 and 1->1, whereas if it is 1, 0->1 and 1->0). I have seen, eg, bytewise addition discussed here (Can I safely replace XOR with ADD in a stream cipher?) as having minimal security benefit ("If your stream cipher is so broken that this makes a difference, run." – CodesInChaos) and sounds like it would still be nearly as vulnerable to a malleability attack or keystream-reuse attack, but what about a more non-linear bijective function?
EDIT: This is a question about a hypothetical science-fiction encryption scheme and whether it could have advantages in principle, not about why this has not heretofore been done in real life. This is also not a question about whether XOR is "good enough" as long as the cryptosystem is always properly implemented and used (which I admit it is), but about whether this scheme fixes known vulnerabilities that XOR has when a cryptosystem is, as inevitably happens, sometimes not properly implemented and used. END EDIT
For example, multiplication mod 257 or 65537 (with the all-0s value taken as -1 as in IDEA), where 8/16 bits of plaintext is turned into 8/16 bits of ciphertext dependent on 8/16 bits of keystream? Would that get rid of malleability or would it replace it with multiplicative malleability? And would it still be trivial to break with a reused keystream?
EDIT: Okay, I think this one is a bust on further reflection. Instead of P1 XOR P2, you get P1*(P2^-1), which I assume is almost as easy to break (P1 and P2 being the two plaintexts encrypted with the same key), and the malleability becomes multiplying the ciphertext by Pa*(P1^-1) to get P1K1Pa*(P1^-1) = Pa*K1 (where P1 is the original plaintext and Pa is the attacker's desired decryption). And I think this applies to any commutative arithmetic function. END EDIT
Or, more generally, an S-box-like construction where n bits of keystream select between 2^n bijective n-bit transforms (like the DES S-boxes where each row was required to be bijective, per criterion S-3 here)? Does that get rid of the malleability attack entirely, as long as the box is well-designed? And would it make the key-reuse attack harder? (I am assuming that the box contents are known to the attacker and all of the security is in the keystream bits)
And would either idea introduce any obvious vulnerabilities? (This question concerns science fiction I am writing, so you can assume it's implemented without side-channel attacks)
EDIT: Also assume that it can be implemented very cheaply in time (hardware/gate count is of secondary importance; envisage military applications by a nation that can mass-produce and custom-design VLSI chips). On purpose-built hardware, an entire AES round, including both of the arithmetical functions, can be done in 10 cycles (or possibly the whole AES encryption, it isn't clear), so assume 5 clock cycles at most, 1 cycle if it's implemented as a hardcoded lookup table (or pair of tables, 1 for encryption, 1 for decryption). The reference cipher I am using for performance is Trivium, which is parallelisable to 64 bits per clock cycle, meaning 16 copies of a four-bit transform unit, 8 copies of an 8-bit unit, etc if it costs 1 cycle per transform or the transform can be efficiently pipelined. END EDIT