[ RECEIVER ]
--------------------------------
1) Receiver loads the .enc file
2) System extracts the components:
• RSA encrypted AES key
• nonce
• ciphertext
• tag
• digital signature
• file extension
3) AES key is decrypted using Receiver’s RSA Private Key
4) Ciphertext is decrypted using AES-GCM → restores plaintext
5) System generates SHA-256 hash of decrypted plaintext
6) Signature verification:
• Verify digital signature using Sender’s RSA Public Key
• Compare hash from signature with computed hash
7) If VALID → File is original & untampered
If INVALID → File was modified / corrupted
8) Save decrypted file with correct extension