Giter VIP home page Giter VIP logo

crypto's Introduction

C++ Cryptographic library

Build Status codecov License: MIT

C++ cryptographic library for fun and profit.
WARNING: Use at your own risk as it is purely amateur project.

This project is licensed under the MIT License - see the LICENSE file for details.

Description

Initial goal of this project was to provide Cryptographic primitives for a Bitcoin library.
As the development advanced, it also implemented other algorithms (basically trying to have Suite-B's algorithms), so a split occured from the initial project.

Second objective of the project is to experiment development tools, on a medium sized project (Git, Travis-CI, AddressSanitizer, ...).

Build and dependencies

A CMake file is provided for building the entire library, and version 3.1 is expected at minimum.
It can run for GNU g++ and LLVM Clang (Unix and Apple version supported).
Windows' compilers (Visual Studio or MinGW) have not been included in the build chain.

The available build types for CMake are:

  • Release: optimization on (-O2)
  • Debug: optimization off, debug on (-g3)
  • ASan: optimization on (-O2), debug on (-g3), compile with AddressSanitizer modules (for g++ or Clang)
  • Coverage: optimization off, debug on (-g3), coverage information on, using lcov

It is possible to build the project by other means, as the build chain is not really complex.
The library tries to keep the different cryptographic modules as independant as possible from each other.

It might be necessary for some objects to have different headers for interfaces, or to include also other object for higher level objects (such as ASN1 parser requires to also compile OID objects or BigNum)

The library is made for C++11, and hence, expect to have a C++11 standard library available.
There is no additional library needed to build the project.

Testing

The testing is available through CTest, using googletest for unit testing.
valgrind is added in CMake build chain as a memchecker for CTest.

The project is integrated to Travis-CI for continuous integration.
Tested platforms are Linux and OSX, only on 64 bits architectures.

Credits

Cryptography implementations

These libraries have been used as reference during the development process:

Development tools

crypto's People

Contributors

tiod4420 avatar

Watchers

James Cloos 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.