Git Product home page Git Product logo

Comments (5)

hdevalence avatar hdevalence commented on August 18, 2024 1

I think that @isislovecruft started working on it in the summer. Right now any work on it is blocked on merging #215, which restructures all of the backend code (e.g., making the changes above).

from curve25519-dalek.

hdevalence avatar hdevalence commented on August 18, 2024

As part of this I think it would be good to reorganize the structure of the source tree, if we're going to have multiple vector and serial backends. Right now the tree looks like

backend
├── avx2
│   ├── #edwards.rs#
│   ├── constants.rs
│   ├── edwards.rs
│   ├── field.rs
│   ├── mod.rs
│   └── scalar_mul
│       ├── mod.rs
│       ├── straus.rs
│       ├── variable_base.rs
│       └── vartime_double_base.rs
├── mod.rs
├── u32
│   ├── constants.rs
│   ├── field.rs
│   ├── mod.rs
│   └── scalar.rs
└── u64
    ├── constants.rs
    ├── field.rs
    ├── mod.rs
    └── scalar.rs

and there's a separate hierarchy for the curve_models and the scalar_mul code, which only have the serial algorithms.

I think it might be better to organize the code like

backend
├── mod.rs
├── serial
│   ├── curve_models
│   │   └── mod.rs
│   ├── scalar_mul
│   │   ├── mod.rs
│   │   ├── straus.rs
│   │   ├── variable_base.rs
│   │   ├── vartime_double_base.rs
│   │   └── window.rs
│   ├── u32
│   │   ├── constants.rs
│   │   ├── field.rs
│   │   ├── mod.rs
│   │   └── scalar.rs
│   └── u64
│       ├── constants.rs
│       ├── field.rs
│       ├── mod.rs
│       └── scalar.rs
└── vector
    ├── avx2
    │   ├── constants.rs
    │   ├── field.rs
    │   └── mod.rs
    ├── edwards.rs
    ├── neon
    │   ├── constants.rs
    │   ├── field.rs
    │   └── mod.rs
    └── scalar_mul
        ├── mod.rs
        ├── straus.rs
        ├── variable_base.rs
        └── vartime_double_base.rs

so that the module tree looks more like the actual structure of what parts are common and which aren't.

from curve25519-dalek.

hdevalence avatar hdevalence commented on August 18, 2024

I typed the wrong issue number in a commit, this was closed spuriously.

from curve25519-dalek.

rubdos avatar rubdos commented on August 18, 2024

Has there been any work on this back end yet? If not, I'm interested in taking a look.

from curve25519-dalek.

rubdos avatar rubdos commented on August 18, 2024

Agreed. Give me a ping if you want some man-hours spend on this. It would be very cool to have curve25519-dalek as the fastest library on all platforms :-)

from curve25519-dalek.

Related Issues (20)

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.