Commit code for generating the message digest and signing it.