How to add SHA1 or SHA256 Hash values to a Hash set

When we receive IOC from external sources, we do not always receive MD5 hashes,
most of the time what we receive are SHA1 or SHA256 hash values.
Is there a way to create a Hash list using these hash values?