Former GCHQ boss backs end-to-end encryption