{"id":41100867,"url":"https://github.com/kriskwiatkowski/pqc","last_synced_at":"2026-01-22T15:10:02.500Z","repository":{"id":42615179,"uuid":"351077384","full_name":"kriskwiatkowski/pqc","owner":"kriskwiatkowski","description":"Reference implementations of post-quantum cryptographic primitives","archived":false,"fork":false,"pushed_at":"2025-08-27T19:59:07.000Z","size":5674,"stargazers_count":29,"open_issues_count":3,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-05T04:38:50.533Z","etag":null,"topics":["c","cryptography","post-quantum","rust"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kriskwiatkowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-24T12:48:09.000Z","updated_at":"2025-08-27T20:03:41.000Z","dependencies_parsed_at":"2024-01-17T00:16:49.751Z","dependency_job_id":null,"html_url":"https://github.com/kriskwiatkowski/pqc","commit_stats":null,"previous_names":["henrydcase/pqc"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/kriskwiatkowski/pqc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriskwiatkowski%2Fpqc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriskwiatkowski%2Fpqc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriskwiatkowski%2Fpqc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriskwiatkowski%2Fpqc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kriskwiatkowski","download_url":"https://codeload.github.com/kriskwiatkowski/pqc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kriskwiatkowski%2Fpqc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28664944,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T14:01:31.714Z","status":"ssl_error","status_checked_at":"2026-01-22T13:59:23.143Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c","cryptography","post-quantum","rust"],"created_at":"2026-01-22T15:10:00.641Z","updated_at":"2026-01-22T15:10:02.495Z","avatar_url":"https://github.com/kriskwiatkowski.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PQ Crypto Catalog\n\nImplementation of quantum-safe signature and KEM schemes submitted to NIST PQC Standardization Process. \n\nThe goal is to provide an easy-to-use API in C and Rust to enable experimentation and education. The code is derived from the submission to the NIST Post-Quantum Standardization, either directly or by leveraging [PQClean](https://github.com/PQClean/PQClean) project.\n\nUsers shouldn't expect any level of security provided by this code. Most of the code is unmaintained. The library is not meant to be used on production systems (or any other systems).\n\n## Supported schemes\n\nAll schemes selected by NIST duing PQC standardization:\n\n| Name                     | x86 optimized |\n|--------------------------|------------|\n| Kyber                    |  x |\n| Dilithium                |  x |\n| Falcon                   |    |\n| SPHINCS+ SHA256/SHAKE256 |  x |\n\n\nKEM candidates for an additional round 4.\n\n| Name                     | x86 optimized |\n|--------------------------|------------|\n| HQC-RMRS                 |  x |\n| McEliece                 |    |\n\n## Building\n\nCMake is used to build the library:\n\n```bash\nmkdir build\ncd build\ncmake -DCMAKE_BUILD_TYPE=Release ..\nmake\n```\n\nBuild outputs two libraries, a static ``libpqc_s.a`` and dynamic ``libpqc.so``, which can be linked with a project.\n\n## API\n\nLibrary provides simple API, wrapping PQClean. For example to use KEM, one should call the library in following way:\n```c\n    #include \u003cpqc/pqc.h\u003e\n\n    const params_t *p = pqc_kem_alg_by_id(KYBER512);\n    std::vector\u003cuint8_t\u003e ct(ciphertext_bsz(p));\n    std::vector\u003cuint8_t\u003e ss1(shared_secret_bsz(p));\n    std::vector\u003cuint8_t\u003e ss2(shared_secret_bsz(p));\n    std::vector\u003cuint8_t\u003e sk(private_key_bsz(p));\n    std::vector\u003cuint8_t\u003e pk(public_key_bsz(p));\n\n    pqc_keygen(p, pk.data(), sk.data());\n    pqc_kem_encapsulate(p, ct.data(), ss1.data(), pk.data());\n    pqc_kem_decapsulate(p, ss2.data(), ct.data(), sk.data());\n\n    p = pqc_sig_alg_by_id(DILITHIUM2);\n    size_t sigsz = sig.capacity();\n    pqc_keygen(p, pk.data(), sk.data());\n    pqc_sig_create(p, sig.data(), \u0026sigsz, msg.data(), msg.size(), sk.data());\n    pqc_sig_verify(p, sig.data(), sig.size(), msg.data(), msg.size(), pk.data());\n```\n\nSee test implemetnation in ``test/ut.cpp`` for more details.\n\n## Rust binding\n\nRust bindgings are provided in the ``src/rustapi/pqc-sys`` and can be regenerated automatically by running ``cargo build`` in that directory.\n\n## Testing against Known Answer Tests\n\nAlgorithms are tested against KATs, by the Rust-based runner implemented in the ``test/katrunner`` (only verification/decpaulation). The runner uses ``katwalk`` crate for parsing NIST format. To run it:\n\n```bash\n    cd test/katrunner\n    curl http://amongbytes.com/~flowher/permalinks/kat.zip --output kat.zip\n    unzip kat.zip\n    cargo run -- --katdir KAT\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkriskwiatkowski%2Fpqc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkriskwiatkowski%2Fpqc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkriskwiatkowski%2Fpqc/lists"}