Home
Software
Utilities
About
Reader (md.h)
https://centaur.pw/software/m18/md.h
[
Direct Link
]
/* Centaur M18 * 2/24/2026 * Version 1.0 * Jon Siragusa <jon@centaur.pw> * https://www.centaur.pw/ * * Copyright (C) Centaur, 2026. All Rights Reserved. * * void struppercase(str) -- converts all letters in str to * to uppercase * int valid_checksum_file(fname) -- returns true if fname contains * at least one valid checksum line * char * mdstring(type, string, uppercase) -- returns hash of string * char * mdfile(type, fname, uppercase) -- returns hash of file * * 'type' is an EVP_MD pointer returned by EVP_MD_fetch() * 'fname' must be a path to a file * 'uppercase' must be provided; 0 = lowercase, 1 = uppercase * * md.h */ #ifndef MD_H #define MD_H 1 #include <openssl/evp.h> extern void struppercase(char *str); extern int valid_checksum_file(char fname[]); extern char * mdstring(const EVP_MD *type, char string[], int uppercase); extern char * mdfile(const EVP_MD *type, char fname[], int uppercase); #endif /* MD_H */