override protected void HashCore(byte[] array, int ibStart, int cbSize) { byte[] subArray = new byte[cbSize]; Array.Copy(array, ibStart, subArray, 0, cbSize); SodiumLibrary.crypto_generichash_update(hashStatePtr, subArray, cbSize); }