Skip to content
This repository was archived by the owner on May 21, 2026. It is now read-only.
This repository was archived by the owner on May 21, 2026. It is now read-only.

Look into use of ChaCha20 for PRF #3

Description

@psivesely

I was reading the BLAKE2 paper and noticed that when you use BLAKE2 in keyed mode the key is padded to a multiple of the block length, and then the message you hash is placed after. So keyed BLAKE2 always does at least two iterations. BLAKE2 and ChaCha20 have similar cpb, but when considering short (<= block length) inputs, ChaCha20 might significantly outperform keyed BLAKE2.

Benchmarks should be implemented first, and then it should be pretty easy to test this (see #2).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions