GithubHelp home page GithubHelp logo

edwards.cry's Introduction

some edwards curves (curve1174, curve41417, x448) in cryptol. Curve.cry defines the generalized implementation for scalar multiplication over a twisted edwards curve with user-chosen parameters. the other various modules instantiate to various concrete parameter choices.

point compression does not work; it's probably entirely wrong. random points for testing are generated via base point multiplication with a random scalar, not randomized/invalid curve points -- a common flaw in many implementations. small subgroup attacks are prevented with masking scalar bits to a multiple of the cofactor, and scalar clamping is done to set the top-most bit for the ladder, but i haven't double checked all this is correct in all cases. (this code was originally derived from an old sketch i had of montgomery curves, but modified to use edwards curves only)

it may, however, be useful when i need to jog my memory. when in doubt, the safecurves website probably has all the needed information.

do not use.

go go gadget arms

nix run \
  -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/baa75f0c25a26ba7423d46ae2b9e89b62dc149e3.tar.gz \
  nixpkgs.cryptol -c \
  cryptol -c ':l X41417.cry' -c ':check'

edwards.cry's People

Contributors

thoughtpolice avatar

Watchers

 avatar  avatar

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.