I just had a discussion about integrity of S/MIME and PGP. I wonder if the different parts (eg attachments and body) are signed/hashed/fingerprinted separately or is this only applied to the resulting container? I checkd some RFC and websites and it looks like the hash/signature is only for the whole message, right?
For example: If one of several attachments is extracted from a smime.p7m file, is this particular file checked for integrity (eg hashcode) or does the signature and hashes only cover the complete message?
And is this different for S/MIME and PGP?
Finally, is there a good resource (except the long to read RFCs) which is showing this?
Thanks!