Coder Social home page Coder Social logo

Implement ChaCha20 about ocaml-salsa20-core HOT 4 CLOSED

cfcs avatar cfcs commented on June 15, 2024
Implement ChaCha20

from ocaml-salsa20-core.

Comments (4)

abeaumont avatar abeaumont commented on June 15, 2024 1

Hi @cfcs!
Note that this repo is rather minimalistic and it only implements Salsa20 Core functions, not even the Salsa20 encryption function (which I've mostly working at https://github.com/abeaumont/ocaml-salsa20). The reason for this is that Salsa20 Core functions are also used outside of Salsa20 encryption function (i.e. https://github.com/abeaumont/ocaml-scrypt-kdf).

Following this reasoning, I think that ChaCha20 deserves its own repo/package. Even if it's only slightly different to Salsa20, its differences are at all levels (quarterrounds, rounds, matrix, etc.), so at the end there's not much code to reuse (and the code is quite simple anyway).

That being said, I also want to see ChaCha20 implemented, so I may just create the new repo and write it. If you're in a rush or want to do it yourself please go ahead and just let me know, and I'll try to contribute as well.

from ocaml-salsa20-core.

cfcs avatar cfcs commented on June 15, 2024

PS: If you don't have time and would rather accept a PR, I'd be happy to do that. :)

from ocaml-salsa20-core.

cfcs avatar cfcs commented on June 15, 2024

Alright, that makes sense :) I have only done very little OCaml<->C integration, so I think you're much better equipped to do it than I am. I'll need it in 2-3 months from now, so I'll give it a go by then if this pesky "real life" thing has held you up; otherwise I'll just opam install chacha20 and live happily ever after. I'll ping you if I start writing code :)

from ocaml-salsa20-core.

abeaumont avatar abeaumont commented on June 15, 2024

Ok, I've created the repo https://github.com/abeaumont/ocaml-chacha20, you can watch it to keep updated =)
Closing this.

from ocaml-salsa20-core.

Related Issues (2)

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.