During Ansom's life the two despised each other. They were ideological opposites. Stanley had respect for Ansom's command ability. Ansom had no kind of respect for Stanley.
After decryption they share an ideology (Stanley's). Stanley seems to genuinely like Ansom now and has great respect for his tactical mind. Ansom is devoted to Stanley, but finds him irritating and questions his judgement.