Git Product home page Git Product logo

virgilsecurity / virgil-crypto-c Goto Github PK

View Code? Open in Web Editor NEW
34.0 15.0 10.0 284.33 MB

This library is designed to be small, flexible and convenient wrapper for a variety crypto algorithms. So it can be used in a small micro controller as well as in a high load server application.

License: Other

CMake 3.54% C 61.63% Shell 0.24% C++ 0.19% Go 3.80% Dockerfile 0.01% PHP 4.25% Swift 4.31% Ruby 0.03% Java 6.16% Python 8.72% JavaScript 7.09% Objective-C 0.04%
crypto post-quantum-cryptography falcon round5 virgil-crypto crypto-algorithms phe pythia

virgil-crypto-c's Introduction

License

Virgil Security Crypto Library for C

Build Linux Build macOS VirgilCrypto Swift Package Manager

Introduction

This library is designed to be a small, flexible and convenient wrapper for a variety of crypto algorithms. So it can be used in a small microcontroller as well as in a high load server application. Also, it provides several custom hybrid algorithms that combine different crypto algorithms to solve common complex cryptographic problems in an easy way. This eliminates the requirement for developers to have strong cryptographic skills.

The library is available for different platforms and contains wrappers for other languages.

Features

The Virgil Security Crypto C library is decomposed into small libraries with specific purposes. A developer can freely choose a subset of libraries.

Library: Foundation

This library contains basic cryptographic algorithms and can be used as building blocks for complex solutions.

Algorithm Purpose Implementation details
Key Generation, PRNG CTR_DRBG NIST SP 800-90A
Key Derivation KDF1, KDF2, HKDF, PBKDF2
Key Exchange X25519, RSA, ECDH
Key Encapsulation Mechanism Round5, ECIES-KEM
Hashing SHA-2 (224/256/384/512)
Message Authentication Code HMAC
Digital Signature Ed25519, RSASSA-PSS, ECDSA, Falcon
Entropy Source Linux, macOS /dev/urandom,
Windows CryptGenRandom()
Symmetric Algorithms AES-256-GCM, AES-256-CBC
Encryption schemes PBES2
Elliptic Curves Ed25519, Curve25519, secp256R1
Post-quantum cryptography Falcon, Round5

Library: PHE

The cryptographic background for the Password-Hardened Encryption (PHE) protocol that provides developers the technology to protect user passwords from offline attacks and render stolen passwords useless even if your database has been compromised. The service implementation can be found here.

Library: Pythia

The cryptographic background for the Pythia PRF Service.

Library: Ratchet

Implementation of the Double Ratchet Algorithm.

Platforms & languages

Library Platforms Languages / Binaries
foundation all C, Swift, Java, JS, Python, Go, PHP
pythia linux, macOS C, Swift, Java, JS, Python, PHP
phe all C, PHP, Java, JS, Python, Go, PHP
ratchet all C, Swift, Java, JS, Python, Go

Build from sources

Prerequisites

  • Compiler:
    • gcc (version >= 4.8.2), or
    • clang (version >= 3.6), or
    • msvc (version >= 14.0)
  • Build tools:
    • cmake (version >= 3.12)
    • python (version >= 3)
    • python-protobuf

Build & Install

git clone https://github.com/VirgilSecurity/virgil-crypto-c.git
cd virgil-crypto-c
cmake -Bbuild -H.
cmake --build build
cmake --build build --target install

Run Benchmarks

cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_BENCHMARKING=ON \
      -DED25519_AMD64_RADIX_64_24K=ON -DED25519_REF10=OFF \
      -Bbuild -H.

cmake --build build -- -j10

./build/benchmarks/foundation/bench

Support

Our developer support team is here to help you.

You can find us on Twitter or send us an email [email protected].

Also, get extra help from our support team on Slack.

License

BSD 3-Clause. See LICENSE for details.

virgil-crypto-c's People

Contributors

andrii-iakovenko avatar dependabot[bot] avatar dkosolap avatar fryziuk avatar imelstorm avatar keithlabelle avatar kutashenko avatar mariiamalitska avatar ogerets avatar petrenkoanton avatar ruslanslobozhenuk avatar sanjodeundiak avatar sergeyseroshtan avatar snanovskyi avatar tatischev avatar tochka avatar vtatischev 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  avatar

Watchers

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

virgil-crypto-c's Issues

Add support to release Linux aarch64 wheels

On aarch64, ‘pip install virgil-crypto-lib’ gives the following error:

ERROR: Could not find a version that satisfies the requirement virgil-crypto-lib (from versions: none)
ERROR: No matching distribution found for virgil-crypto-lib

Please let me know your interest in releasing Linux aarch64 wheels. I can help with this.

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.