Giter Site home page Giter Site logo

crocs-muni / cm_factorization Goto Github PK

View Code? Open in Web Editor NEW
33.0 6.0 5.0 1.29 MB

Complex multiplication based factorization

Home Page: https://crocs.fi.muni.cz/public/papers/Secrypt2019

License: MIT License

Python 16.58% Jupyter Notebook 79.30% Sage 4.12%
complex-multiplication elliptic-curves factorization secrypt-2019

cm_factorization's Introduction

CM-based factorization

Complex multiplication based factorization. This repository contains proof of concept factorization code and scripts used in experiments.

Proof of concept script usage

Generating CM primes:

sage cm_factor.sage --action generate --prime-bits 64
16344322632527439553

CM factorization:

sage cm_factor.sage -N 158697752795669080171615843390068686677 -D 11
Factorization of N: 158697752795669080171615843390068686677 is: 
14793660019451035033 * 10727416514034371869

Advanced usage script

More complex script that was used to run experiments covered in the paper is experiments.sage. It covers distributed computation of the factorization, class number sampling, batch BCD computation, Hilbert polynomial generation, primorial D computation, benchmarking.

Dependencies

Sage 8 is required. Included packages coloredlogs, humanfriendly are optional.

cm_factorization's People

Contributors

ngoctnq avatar ph4r05 avatar vladasedlacek avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cm_factorization's Issues

issues about big N overflow.

Hi,
In file cam_facotr.sage, while N is very big, like more than 2048 bits, we will got an float overflow error. i guess we should change the line 339, from:
q = args.mod / result.r
to :
q = args.mod // result.r
am i right?

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.