Gets the length in bytes of digests of type checksum_type
checksum_type
a ChecksumType
the checksum length, or -1 if checksum_type is not supported.