Decrypting an Encrypted Message
In this section, the steps to decrypt an encrypted message are presented. The following illustration depicts the individual tasks that must be accomplished, as shown in the list that follows it.
To decrypt an encrypted message
-
Get a pointer to the digitally enveloped message.
-
Open a certificate store.
-
From the message, retrieve the recipient ID (My ID).
-
Use the recipient ID to retrieve the certificate.
-
Get the private key from the certificate.
-
Use the private key to decrypt the symmetric (session) key.
-
Retrieve the encryption algorithm from the message.
-
Using the private key and encryption algorithm, decrypt the data.