How to import and decrypt secure key and gpg file in linux using c

How to import and decrypt secure key and gpg file in linux using c
0

#1

I have gpg file and secure key.i want decrypt gpg file by importing secure key using c in linux. which is the best way to achieve this.please provide some sample code in c.