NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
pgpmicalg.h File Reference

Identify the hash algorithm from a PGP signature. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

const char * pgp_micalg (const char *fname)
 Find the hash algorithm of a file.
 

Detailed Description

Identify the hash algorithm from a PGP signature.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file pgpmicalg.h.

Function Documentation

◆ pgp_micalg()

const char * pgp_micalg ( const char *  fname)

Find the hash algorithm of a file.

Parameters
fnameFile to read
Return values
ptrName of hash algorithm

Definition at line 228 of file pgpmicalg.c.

229{
230 return pgp_hash_to_micalg(pgp_find_hash(fname));
231}
static const char * pgp_hash_to_micalg(short id)
Lookup a hash name, given its id.
Definition: pgpmicalg.c:64
static short pgp_find_hash(const char *fname)
Find the hash algorithm of a file.
Definition: pgpmicalg.c:183
+ Here is the call graph for this function:
+ Here is the caller graph for this function: