1165355 - Add a sanitize_checksum_type function.

This is the fix for the SHA/SHA-1 collision bug our users have been experiencing.

Most of the work is in the pulp_rpm project:

    https://github.com/pulp/pulp_rpm/pull/602

https://bugzilla.redhat.com/show_bug.cgi?id=1165355