I think it's restricted to the baseband, but I'm not an expert. Fun fact: SIM cards actually have a flag which tells the handset to display a warning to the user if they are using an unencrypted connection. Basically no commercial SIM cards have this flag enabled.
I believe you have to enable a bit to _disable_ the warning (eg, it should be there as default). On my own network with my own sim cards, I've yet to find a modern handset that actually alerts me, though :(