Code Monkey home page Code Monkey logo

daence's Introduction

Daence

Crates.io Docs.rs MIT licensed

Here lies an implementation of "Deterministic Authenticated Encryption with no noNCEnse" by Taylor ‘Riastradh’ Campbell.

Security Warning

No security audits of this crate have ever been performed, and it has not been thoroughly assessed to ensure its operation is constant-time on common CPU architectures.

USE AT YOUR OWN RISK!

Description

Rumor has it that this AEAD construct thrives in abscence of nonces.

That property, combined with a tag size of only 12 bytes, allows using it for extremely size-constrained messages.

It seems like it works, I am going to use it, and so can you.

Notably, at the time of writing, it is probably as constant-time as the underlying poly1305::Poly1305, chacha20::hchacha, chacha20::XChaCha20 and <[u8] as subtle::ConstantTimeEq>::ct_eq.
There is no flow control, and all of these get called on the entire relevant portions of the data for any and all keys, additional data, cyphertext, and tag.

⚠ That said, neither this implementation, nor the original specification have been sufficiently peer reviewed, and using this today may be unreasonable for many usecases. ⚠
I personally have several questions for the specification...
If you have the space for it, you may want to use AES-GCM-SIV. If you additionaly have a source of nonces, and are confident they will not be reused, you may use ChaCha20Poly1305.

Currently, only the later XChaCha20 (as opposed to the Salsa20) variant is implemented.

Contributions are welcome, including documentation, benchmarks, and especially implementing the aead traits.

License

This project is licensed under the MIT license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Daencezs by you, shall be licensed as MIT, without any additional terms or conditions.

daence's People

Contributors

qm3ster avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

daence's Issues

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.