Re #877 Checks whether the message and the key is the same.