Asymmetric Key - A file encrypted with a Private Key can only be decrypted with a matching Public Key. If you have access to both the encrypted and plain text version of the file together with the public key you can check your decryption produces a file identical to the original.
To avoid the overheads of encrypting the entire file, you can create a small but unique fingerprint of the file called a digest. The encryption of the digest with the private key is called a file signature
|