New generic entity DigestComputer is introduced. Existing types like SHA256Hash or MD5Hash now embed this structure to preserve backward compatibility, but prevent code duplication. All the other digests (like BLAKE2 etc.) can be calculated with the direct use of DigestComputer
Please consider this PR that provides an opportunity to utilize any hash function impemented in OpenSSL:
New generic entity
DigestComputer
is introduced. Existing types likeSHA256Hash
orMD5Hash
now embed this structure to preserve backward compatibility, but prevent code duplication. All the other digests (likeBLAKE2
etc.) can be calculated with the direct use ofDigestComputer