I try creating a custom hash algorithm that conforms to the HashFunction & Digest protocol of CryptoKit. The algorithm is an implementation of the OpenSubtitles hash which takes the first and last 8 bytes of a data to generate the hash.
Here is my current implementation: