And by the way, such systems already exist
1) https://crypto.cat (after a few bad releases it looks like they got it right... probably)
2) https://github.com/ChatSecure for iOS
There are a few more:
https://en.wikipedia.org/wiki/Off-the-Record_Messaging#Nativ...