A Pictorial View Of The Process
Here''s a view of the digital signing process in the form of a picture, illustrated in Figure 1. The diagram shows the process of computing a digested value for a message, encrypting the digest with the sender''s private key, appending the digital signature to the message.
When the message is received, the receiver (his software) decrypts the digital signature using the sender''s public key (from the digital certificate), computes a message digest value for the received message using the same algorithm that the sender used, and compares the two values. If the values match, the receiver is assured that the message received is exactly the message that was sent and that the sender must have used their private key to sign the original digest value.

Figure 1
Creating And Testing A Digital Signature