Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • seahash seahash
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3
    • Issues 3
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-osredox-os
  • seahashseahash
  • Issues
  • #1
Closed
Open
Issue created Apr 16, 2019 by Philip Woolford@pantsman0Contributor

Stream implementation sensitive to chunking

The StreamHasher struct in stream.rs is sensitive to to the chunking of data.

E.g. Hashing [u64::MAX, 0] is different to hashing [u64::MAX] then [0].

I have added a test to demonstrate in my fork at https://gitlab.redox-os.org/pantsman0/seahash/blob/stream-tests/src/stream.rs#L132

The output is:

---- stream::tests::chunked_equiv stdout ----
thread 'stream::tests::chunked_equiv' panicked at 'assertion failed: `(left == right)`
  left: `7214075340457006594`,
 right: `13128668274129567273`', src/stream.rs:141:9
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.


failures:
    stream::tests::chunked_equiv
Assignee
Assign to
Time tracking