I am trying to decrypt pgp encrypted files. I had both public and private keys and I created two files like pub.key and sec.key and imported them using
gpg --import pub.key gpg --import sec.key
and I am trying to decrypt the files but I am facing the issue
gpg: decryption failed: No secret key
Please help me with this and if possible with a sample how the keys should be imported.