epg-sign-file

epg-sign-file is a compiled Lisp function in `epg.el'.

(epg-sign-file CONTEXT PLAIN SIGNATURE &optional MODE)

Sign a file PLAIN and store the result to a file SIGNATURE.
If SIGNATURE is nil, it returns the result as a string.
If optional 3rd argument MODE is t or 'detached, it makes a detached signature.
If it is nil or 'normal, it makes a normal signature.
Otherwise, it makes a cleartext signature.