{"id":18332027,"url":"https://github.com/davxy/cry","last_synced_at":"2025-04-09T18:30:12.446Z","repository":{"id":90839630,"uuid":"584149853","full_name":"davxy/cry","owner":"davxy","description":"CRY crypto library","archived":false,"fork":false,"pushed_at":"2023-09-02T13:13:01.000Z","size":3907,"stargazers_count":2,"open_issues_count":6,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T15:43:22.415Z","etag":null,"topics":["arithmetic","bignumber","cryptography","mpi","number-theory"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davxy.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":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-01T15:36:01.000Z","updated_at":"2025-04-03T20:09:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"c5d0926d-4c6a-4d8f-a94e-97616d873f71","html_url":"https://github.com/davxy/cry","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davxy%2Fcry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davxy%2Fcry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davxy%2Fcry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davxy%2Fcry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davxy","download_url":"https://codeload.github.com/davxy/cry/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248087502,"owners_count":21045528,"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":["arithmetic","bignumber","cryptography","mpi","number-theory"],"created_at":"2024-11-05T19:37:00.959Z","updated_at":"2025-04-09T18:30:12.422Z","avatar_url":"https://github.com/davxy.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://gitlab.com/davxy/cry/badges/master/pipeline.svg)](https://gitlab.com/davxy/cry/-/pipelines)\n[![Coverage Status](https://coveralls.io/repos/github/crylib/cry/badge.svg?branch=master)](https://coveralls.io/github/crylib/cry?branch=master)\n\n\nCRY\n===\n\nCRY is a small, comprehensive and portable cryptographic library prividing\na good collection of ciphers, hash functions, pseudo-random number generators\nand multi-precision integers algorithms.\n\n### ⚠️ WARNING ⚠️\n\nThe code has never been audited by any third party nor has been developed\nwith the intent to be used for any serious application.\n\nMain focus was personal research and fun.\n\nThe implementations are not constant time nor efficient.\n\n**USE IT AT YOUR OWN RISK!!!**\n\nSymmetric ciphers\n-----------------\n\n### Block ciphers\n\n- AES (Rijndael)\n- DES and Triple DES\n\n### Block ciphers mode of operation\n\n- ECB (electronic codebook)\n- CBC (cipher block chaining)\n- CFB (cipher feedback)\n- CTR (counter)\n- GCM (Galois counter mode)\n\n### Stream ciphers\n\n- ARC4\n- Trivium\n\n\nPublic key algorithms\n---------------------\n\n### Ciphers\n\n- RSA (PKCS1 v1.5 padding)\n\n### Secret exchange\n\n- Diffie-Hellman (DH)\n- ECDH\n\n### Digital signature\n\n- RSA (PKCS1 v2.1 PSS padding)\n- DSA\n- ECDSA\n- Elgamal\n\n\nElliptic Curve\n--------------\n\n- EC group arithmetic.\n- NIST recommended elliptic curve domain parameters over Fp.\n- Brainpool standard curve domain parameters over Fp (RFC 5639).\n\n\nPseudo random numbers generators\n--------------------------------\n\n- AES-CTR CSPRNG\n- LFSR-113 fast PRNG\n\nMessage authentication code\n---------------------------\n\n- HMAC\n- CMAC\n\n\nHash\n----\n\n### Secure hash\n\n- MD5\n- SHA-1\n- SHA-256\n- SHA-512\n\n### CRC\n\n- CRC16-CCITT\n- CRC16-IBM\n- CRC16-DNP\n- CRC32-Ethernet\n\n\nClassical ciphers\n-----------------\n\n### Substitution ciphers\n\n- Hill cipher\n- Polyalphabetic Affine cipher\n\n\nMultiple precision integers\n---------------------------\n\n- Basic arithmentic (add,sub,mul,div,mod,abs,exp,sqr)\n- Modular exponentiation\n- Modular inverse (Euclidean)\n- GCD and LCM\n- Probabilistic prime numbers generator (Miller-Rabin)\n- Random mpi generator\n- Comba, Karatsuba and Toom-Cook-3 multipliers\n\n\nUtilities\n---------\n\n- AES Key Wrap (RFC-3394)\n- Base64 encoder/decoder\n- Memxor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavxy%2Fcry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavxy%2Fcry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavxy%2Fcry/lists"}