Hey,
Thanks for reply.
This realy is described in that RFC2634, but it is not very clear what is happening in each stage and what is the output of each stage.
I couldn’t find a single detailed illustration of S/MIME on the internet.
On the other hand, processes of PGP are illustrated in detail on many sites.