{"id":19863141,"url":"https://github.com/lcian/klein-cryptanalysis","last_synced_at":"2025-02-28T23:15:29.372Z","repository":{"id":167878278,"uuid":"640528040","full_name":"lcian/klein-cryptanalysis","owner":"lcian","description":"🔓 Cryptanalytic attack on the KLEIN embedded block cipher","archived":false,"fork":false,"pushed_at":"2024-05-13T08:47:53.000Z","size":867,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T15:21:47.532Z","etag":null,"topics":["cryptanalysis","cryptography"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lcian.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-05-14T11:51:34.000Z","updated_at":"2024-08-06T22:05:12.000Z","dependencies_parsed_at":"2024-05-13T09:54:39.740Z","dependency_job_id":"60e7a7ce-6344-4cd2-afbe-a0031460fd52","html_url":"https://github.com/lcian/klein-cryptanalysis","commit_stats":null,"previous_names":["lcian/advanced-topics-in-cybersecurity-1","lcian/klein-cryptanalysis"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcian%2Fklein-cryptanalysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcian%2Fklein-cryptanalysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcian%2Fklein-cryptanalysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lcian%2Fklein-cryptanalysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lcian","download_url":"https://codeload.github.com/lcian/klein-cryptanalysis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241272618,"owners_count":19937091,"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":["cryptanalysis","cryptography"],"created_at":"2024-11-12T15:13:42.509Z","updated_at":"2025-02-28T23:15:29.351Z","avatar_url":"https://github.com/lcian.png","language":"C","readme":"\n# Differential cryptanalysis of KLEIN\n\nThis is an implementation of a differential attack on a round-reduced version of the [KLEIN](https://link.springer.com/chapter/10.1007/978-3-642-25286-0_1) block cipher, achieving key recovery.\nThe attack is implemented purely in C, with the option to use OpenMP to parallelize the brute-force phase.\n\n![](./media/demo.gif)\n\nOn an AMD Ryzen 7 4700U (8 cores), the attack takes around 5 seconds for 5 rounds and around 3 minutes for 6 rounds.\n\nA full report is available [here](report.pdf).\n\nThe differential is based on [this paper](https://eprint.iacr.org/2014/090).\nThe original KLEIN implementation by Gong Zheng is used, which is also available at [this repository](https://github.com/GongZheng/KLEIN).\n\n# Usage\n\n```sh\ngit clone https://github.com/lcian/klein-cryptanalysis.git\ncd klein-cryptanalysis/src\n$EDITOR config.h # set the master key and the number of rounds\nmake\n./attack\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcian%2Fklein-cryptanalysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flcian%2Fklein-cryptanalysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flcian%2Fklein-cryptanalysis/lists"}