When Bob receives the signed message , he raises the signature to the power of e mod n ( just like encrypting a message ) , and compares the resulting hash value with the message 's actual hash value . He raises the signature to the power of ( as he does when encrypting a message ) , and compares the resulting hash value with the message 's actual hash value .