Пример #1
0
        protected override void HashCore(byte[] array, int ibStart, int cbSize)
        {
            XXHash.ErrorCode errorCode = XXHash.InternalUpdateState64(_state, array, ibStart, cbSize);

            if (errorCode != XXHash.ErrorCode.XXH_OK)
            {
                throw new InvalidOperationException();
            }
        }
Пример #2
0
 public override void Initialize()
 {
     XXHash.InternalResetState64(_state, _state.seed);
 }
Пример #3
0
        protected override byte[] HashFinal()
        {
            ulong value = XXHash.InternalDigestState64(_state);

            return(BitConverter.GetBytes(value));
        }