Hi Jeff: Just an other idea which might make it on your wish list: GMime comes with a GMimeFilterMd5 stream filter for calculating a MD5 hash. However, MD5 and also SHA1 [1, 2] are mostly useless these days as collisions can be crafted easily. What do you think of replacing GMimeFilterMd5 by something like GMimeFilterChecksum, which takes the hash type as constructor argument (i.e. "GMimeFilter *g_mime_filter_checksum_new(GChecksumType type);")? If you use the g_checksum_* functions internally, this would be a minimal change I guess, but very helpful. It might be better to return the digest in a newly allocated string, btw, like "gchar *g_mime_filter_checksum_get_checksum(GMimeFilterChecksum *checksum);". Opinions? Cheers, Albrecht. [1] <https://www.schneier.com/blog/archives/2017/02/sha-1_collision.html> [2] <https://alf.nu/SHA1>
Attachment:
pgp0kPErPkD7j.pgp
Description: PGP signature