1165355 - Add a sanitize_checksum_type function.

https://bugzilla.redhat.com/show_bug.cgi?id=1165355