GithubHelp home page GithubHelp logo

betarixm / cuecc Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 3.0 478 KB

POSTECH: Heterogeneous Parallel Computing (Fall 2023)

Makefile 2.21% Python 37.23% Cuda 60.56%
ctypes cuda postech cryptography ecc secp256k1

cuecc's Introduction

cuECC: CUDA-accelerated Elliptic Curve Cryptography Library

CSED490C@POSTECH CSED490C@POSTECH

cuECC is a CUDA-accelerated Elliptic Curve Cryptography library designed for secp256k1. The primary goal of this library is to enhance the throughput of ECC by utilizing the parallelism of GPU. This library includes not only the basic operations of ECC but also 256-bit unsigned integer arithmetic operations, operations over finite fields, and curves.

It can be easily integrated into other Python projects using the included Python bindings and is zero-dependency.

Features

  • 256-bit unsigned integer arithmetic operations
  • Finite field arithmetic operations
  • Elliptic curve point operations
  • Parallel public key generation
  • Python bindings

Usage

To use cuECC, follow these steps:

  1. Clone this repository.
  2. Navigate to the cloned directory.
  3. Run make all to build the library.
  4. Use the built libcuecc.so in your code.

To use cuECC in Python, follow these steps:

  1. Build the library as described above.
  2. Import the Ecc class from ecc.py.
  3. Initialize the class with the path to the built library, e.g., ecc = Ecc('./libcuecc.so')

Benchmarks

To compare the performance of cuECC with a pure-python implementation, follow these steps:

  1. Clone this repository.
  2. Navigate to the cloned directory.
  3. Run make all to build the library.
  4. Run poetry install to install the dependencies.
  5. Run poetry run benchmark-public-key to benchmark the public key generation process.

Note that the Python implementation is from cryptography-python.

Disclaimer

Note that this library is not intended for production use. It is unoptimized and may be insecure. It is provided solely for educational purposes, specifically for the CSED490C course at POSTECH. Any usage is at your own risk, and the contributors are not responsible for any potential issues.

cuecc's People

Contributors

betarixm avatar

Stargazers

 avatar Aplace avatar Ryang Sohn avatar

Watchers

Chinmay Hegde 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.