{"id":19198464,"url":"https://github.com/virgilsecurity/virgil-crypto-c","last_synced_at":"2026-04-22T01:07:31.349Z","repository":{"id":37514718,"uuid":"119018897","full_name":"VirgilSecurity/virgil-crypto-c","owner":"VirgilSecurity","description":"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.","archived":false,"fork":false,"pushed_at":"2024-12-02T12:09:26.000Z","size":276109,"stargazers_count":38,"open_issues_count":3,"forks_count":12,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-03-29T06:07:26.370Z","etag":null,"topics":["crypto","crypto-algorithms","falcon","phe","post-quantum-cryptography","pythia","round5","virgil-crypto"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VirgilSecurity.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-26T07:15:37.000Z","updated_at":"2025-01-23T09:31:40.000Z","dependencies_parsed_at":"2024-04-26T02:27:47.673Z","dependency_job_id":"86d5ad8e-7522-41c8-82a8-960991bd32f3","html_url":"https://github.com/VirgilSecurity/virgil-crypto-c","commit_stats":{"total_commits":2953,"total_committers":24,"mean_commits":"123.04166666666667","dds":0.33051134439553,"last_synced_commit":"40ae5231264c8f2d79354922fac15d96021aa8b5"},"previous_names":[],"tags_count":60,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fvirgil-crypto-c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fvirgil-crypto-c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fvirgil-crypto-c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VirgilSecurity%2Fvirgil-crypto-c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VirgilSecurity","download_url":"https://codeload.github.com/VirgilSecurity/virgil-crypto-c/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247299831,"owners_count":20916190,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crypto","crypto-algorithms","falcon","phe","post-quantum-cryptography","pythia","round5","virgil-crypto"],"created_at":"2024-11-09T12:22:10.908Z","updated_at":"2026-04-22T01:07:31.340Z","avatar_url":"https://github.com/VirgilSecurity.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://raw.githubusercontent.com/VirgilSecurity/virgil-crypto/master/LICENSE)\n\n# Virgil Security Crypto Library for C\n\n[![Build Linux](https://github.com/VirgilSecurity/virgil-crypto-c/actions/workflows/build-linux.yml/badge.svg)](https://github.com/VirgilSecurity/virgil-crypto-c/actions/workflows/build-linux.yml)\n[![Build macOS](https://github.com/VirgilSecurity/virgil-crypto-c/actions/workflows/build-macos.yml/badge.svg)](https://github.com/VirgilSecurity/virgil-crypto-c/actions/workflows/build-macos.yml)\n[![Swift Package Manager](https://img.shields.io/badge/Swift_Package_Manager-compatible-orange?style=flat)](https://www.swift.org/package-manager/)\n\n\n## Introduction\n\nThis library is designed to be a small, flexible and convenient wrapper for a variety of crypto algorithms.\nSo 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.\n\nThe library is available for different platforms and contains wrappers for other languages.\n\n## Features\n\nThe Virgil Security Crypto C library is decomposed into small libraries with specific purposes. A developer can freely choose a subset of libraries.\n\n### Library: Foundation\n\nThis library contains basic cryptographic algorithms and can be used as building blocks for complex solutions.\n\n| Algorithm Purpose           | Implementation details                                                                                                                                                           |\n| --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| Key Generation, PRNG        | CTR_DRBG [NIST SP 800-90A](http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf)                                                                           |\n| Key Derivation              | [KDF1, KDF2](https://www.shoup.net/iso/std6.pdf),  [HKDF](https://tools.ietf.org/html/rfc5869), [PBKDF2](https://tools.ietf.org/html/rfc8018#section-5.2)                        |\n| Key Exchange                | [X25519](https://tools.ietf.org/html/rfc7748), [RSA](http://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-56Br1.pdf), [ECDH](https://www.secg.org/sec1-v2.pdf)       |\n| Key Encapsulation Mechanism | [Round5](https://github.com/round5/code), ECIES-KEM                                                                                                                              |\n| Hashing                     | [SHA-2 (224/256/384/512)](https://tools.ietf.org/html/rfc4634)                                                                                                                   |\n| Message Authentication Code | [HMAC](https://www.ietf.org/rfc/rfc2104.txt)                                                                                                                                     |\n| Digital Signature           | [Ed25519](https://tools.ietf.org/html/rfc8032), [RSASSA-PSS](https://tools.ietf.org/html/rfc4056), [ECDSA](https://www.secg.org/sec1-v2.pdf), [Falcon](https://falcon-sign.info) |\n| Entropy Source              | Linux, macOS [/dev/urandom](https://tls.mbed.org/module-level-design-rng),\u003cbr\u003eWindows [CryptGenRandom()](https://tls.mbed.org/module-level-design-rng)                           |\n| Symmetric Algorithms        | [AES-256-GCM](http://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf), [AES-256-CBC](https://tools.ietf.org/html/rfc3602)                                  |\n| Encryption schemes          | [PBES2](https://tools.ietf.org/html/rfc8018#section-6.2)                                                                                                                         |\n| Elliptic Curves             | [Ed25519](https://tools.ietf.org/html/rfc8032), [Curve25519](https://tools.ietf.org/html/rfc7748), [secp256R1](https://www.secg.org/sec1-v2.pdf)                                 |\n| Post-quantum cryptography   | [Falcon](https://falcon-sign.info), [Round5](https://github.com/round5/code)                                                                                                     |\n\n### Library: PHE\n\nThe cryptographic background for the [Password-Hardened Encryption (PHE) protocol](https://virgilsecurity.com/wp-content/uploads/2018/11/PHE-Whitepaper-2018.pdf) 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](https://github.com/VirgilSecurity/virgil-phe-go).\n\n### Library: Pythia\n\nThe cryptographic background for the  [Pythia PRF Service](http://pages.cs.wisc.edu/~ace/papers/pythia-full.pdf).\n\n### Library: Ratchet\n\nImplementation of the [Double Ratchet Algorithm](https://en.wikipedia.org/wiki/Double_Ratchet_Algorithm).\n\n\n## Platforms \u0026 languages\n\n| Library    | Platforms    | Languages / Binaries                                                                                                                                                                                                                                                                                                                                                                                                                                                         |\n| ---------- | ------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| foundation | all          | [C](https://cdn.virgilsecurity.com/virgil-crypto-c/c), [Swift](https://github.com/VirgilSecurity/virgil-cryptowrapper-x), [Java](https://mvnrepository.com/artifact/com.virgilsecurity.crypto), [JS](https://github.com/VirgilSecurity/virgil-crypto-javascript), [Python](https://pypi.org/project/virgil-crypto-lib), [Go](https://github.com/VirgilSecurity/virgil-sdk-go/tree/master/crypto/internal), [PHP](https://github.com/VirgilSecurity/virgil-cryptowrapper-php) |\n| pythia     | linux, macOS | [C](https://cdn.virgilsecurity.com/virgil-crypto-c/c), [Swift](https://github.com/VirgilSecurity/virgil-cryptowrapper-x), [Java](https://mvnrepository.com/artifact/com.virgilsecurity.crypto), [JS](https://github.com/VirgilSecurity/virgil-crypto-javascript), [Python](https://pypi.org/project/virgil-crypto-lib), [PHP](https://github.com/VirgilSecurity/virgil-cryptowrapper-php)                                                                                    |\n| phe        | all          | [C](https://cdn.virgilsecurity.com/virgil-crypto-c/c), [PHP](https://cdn.virgilsecurity.com/virgil-crypto-c/php), [Java](https://mvnrepository.com/artifact/com.virgilsecurity.crypto), [JS](https://github.com/VirgilSecurity/virgil-crypto-javascript), [Python](https://pypi.org/project/virgil-crypto-lib), [Go](https://github.com/VirgilSecurity/virgil-sdk-go/tree/master/crypto/internal), [PHP](https://github.com/VirgilSecurity/virgil-cryptowrapper-php)         |\n| ratchet    | all          | [C](https://cdn.virgilsecurity.com/virgil-crypto-c/c), [Swift](https://github.com/VirgilSecurity/virgil-cryptowrapper-x), [Java](https://mvnrepository.com/artifact/com.virgilsecurity.crypto), [JS](https://github.com/VirgilSecurity/virgil-crypto-javascript), [Python](https://pypi.org/project/virgil-crypto-lib), [Go](https://github.com/VirgilSecurity/virgil-sdk-go/tree/master/crypto/internal)                                                                    |\n\n## Build from sources\n\n### Prerequisites\n\n* Compiler:\n  - `gcc` (version \u003e= 4.8.2), or\n  - `clang` (version \u003e= 3.6), or\n  - `msvc` (version \u003e= 14.0)\n* Build tools:\n  - `cmake` (version \u003e= 3.12)\n  - `python` (version \u003e= 3)\n  - `python-protobuf`\n\n### Build \u0026 Install\n\n```bash\ngit clone https://github.com/VirgilSecurity/virgil-crypto-c.git\ncd virgil-crypto-c\ncmake -Bbuild -H.\ncmake --build build\ncmake --build build --target install\n```\n\n## Run Benchmarks\n\n```bash\ncmake -DCMAKE_BUILD_TYPE=Release -DENABLE_BENCHMARKING=ON \\\n      -DED25519_AMD64_RADIX_64_24K=ON -DED25519_REF10=OFF \\\n      -Bbuild -H.\n\ncmake --build build -- -j10\n\n./build/benchmarks/foundation/bench\n```\n\n## Support\n\nOur developer support team is here to help you.\n\nYou can find us on [Twitter](https://twitter.com/VirgilSecurity) or send us an email support@VirgilSecurity.com.\n\nAlso, get extra help from our support team on [Slack](https://virgilsecurity.com/join-community).\n\n## License\n\nBSD 3-Clause. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirgilsecurity%2Fvirgil-crypto-c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirgilsecurity%2Fvirgil-crypto-c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirgilsecurity%2Fvirgil-crypto-c/lists"}