Skip to content

skein: improve performance #684

Open

Description

@fck-gthb

The C implementation of Skein in https://github.com/pornin/sphlib is 5x+ faster than the one in RustCrypto/hashes.

  skein/512-rust          time:   [1.3714 µs 1.3734 µs 1.3753 µs]
Found 6 outliers among 100 measurements (6.00%)
  4 (4.00%) high mild
  2 (2.00%) high severe
skein/512-sphlib        time:   [200.72 ns 200.79 ns 200.88 ns]
Found 8 outliers among 100 measurements (8.00%)
  3 (3.00%) high mild
  5 (5.00%) high severe

Activity

  1. newpavlov commented on Apr 25, 2025

    @newpavlov
    Member

    The reason is likely in a suboptimal implementation of the underlying block cipher in the threefish crate, since block compress function in Skein is mostly just threefish block encrypt.

  2. changed the title [-]Skein is quite slow[/-] [+]skein: improve perfromance[/+] on May 5, 2025
  3. fck-gthb commented on Jun 13, 2025

    @fck-gthb
    Author

    Performance not perfromance.

  4. changed the title [-]skein: improve perfromance[/-] [+]skein: improve performance[/+] on Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions