Code Monkey home page Code Monkey logo

ff-libc's Introduction

ff-libc

Build status MIT License

Overview

This is a C library which prorvides arithmetic operations in finite fields, also known as Galois fields.

Project structure

ff-libc/
├── src/
│   └── (source files)
│
├── tests/
│    └── (test files)
│
├── CMakeLists.txt
├── LICENSE
└── README.md

Features

A field can be initialized by defining the underlying structure or by passing an irreducible polynomial along with a field characteristic to the initializer.

Validation (valid irreducible polynomial, valid prime number) of arguments is not performed.

Polynomial can be initialized seperately. Coefficients are stored in little-endian order.

  • Basic arithmetic operations modulo Irreducible polynomial:
    • GF_elem_sum
    • GF_elem_diff
    • GF_elem_prod
    • GF_elem_div
    • GF_elem_get_complement
    • GF_elem_get_neutral
    • GF_elem_get_unity
    • GF_elem_get_inverse

Getting Started

Prerequisites

  • CMake (version 3.10 or higher)
  • GCC

Building

Open the terminal and follow these steps:

  1. Clone the repository:

    git clone [email protected]:artem-burashnikov/ff-libc.git
  2. Navigate to the project root:

    cd ff-libc
  3. Generate Makefile using CMake:

    mkdir build && cd build;
    cmake ..
  4. Build a static library:

    cmake --build . --clean-first

Licenses

The project is licensed under an MIT License.

ff-libc's People

Contributors

artem-burashnikov avatar

Watchers

 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.