GithubHelp home page GithubHelp logo

paulgrandperrin / xchacha8blake3siv Goto Github PK

View Code? Open in Web Editor NEW
17.0 3.0 3.0 21 KB

XChaCha8Blake3Siv is a nonce-reuse misuse-resistant (NRMR) and key-committing authenticated encryption with associated data (AEAD) algorithm

Rust 100.00%
chacha chacha8 xchacha8 chacha-cipher blake blake3 siv siv-mode aead authenticated-encryption

xchacha8blake3siv's Introduction

RUSTFLAGS="-Ctarget-cpu=native -Ctarget-feature=+aes,+ssse3" cargo bench --bench bench -- --sample-size 1000 --measurement-time 5 --warm-up-time 1
critcmp new -g '\w+/(.+)$'
group       new/chacha20poly1305/                   new/xchacha8blake3siv/
-----       ---------------------                   ----------------------
       1    1.83    794.0±67.32ns  1230.0 KB/sec    1.00   434.4±71.25ns     2.2 MB/sec
      32    1.93    824.2±72.08ns    37.0 MB/sec    1.00   426.5±54.46ns    71.5 MB/sec
     128    1.45  1118.9±105.82ns   109.1 MB/sec    1.00   769.3±88.38ns   158.7 MB/sec
    4096    1.00       8.0±0.89µs   490.2 MB/sec    1.21      9.6±6.33µs   405.6 MB/sec
   65536    1.41     114.7±7.53µs   544.8 MB/sec    1.00     81.1±5.83µs   770.5 MB/sec
 1048576    1.51  1836.5±122.06µs   544.5 MB/sec    1.00  1220.1±93.47µs   819.6 MB/sec
cargo flamegraph --bench bench --  --bench -n --profile-time 10 xchacha8blake3siv

xchacha8blake3siv's People

Contributors

paulgrandperrin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xchacha8blake3siv's Issues

Publish this crate?

Hey, would you be down to publish this? I know there's the usual caveats of using experimental crypto, but I really like the concept, and I might, at some point in the future, be willing to fund a security audit.

More details on how it works

I am not a cryptography expert but I have asked the same question on whether we can change Chacha20-poly1305 to use Blake3. It seems that you have come up with a way to do this. I read your comments on blake3 repo BLAKE3-team/BLAKE3#138 so why not publish the details here in this repo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.