{"id":23265722,"url":"https://github.com/mahadmuhammad/fips204","last_synced_at":"2025-04-06T07:33:59.032Z","repository":{"id":267173113,"uuid":"891682534","full_name":"MahadMuhammad/fips204","owner":"MahadMuhammad","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-08T20:17:00.000Z","size":51,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T12:57:00.154Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://csrc.nist.gov/pubs/fips/204/final","language":"Python","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/MahadMuhammad.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":"2024-11-20T19:08:58.000Z","updated_at":"2024-12-08T20:17:04.000Z","dependencies_parsed_at":"2024-12-08T21:34:31.299Z","dependency_job_id":null,"html_url":"https://github.com/MahadMuhammad/fips204","commit_stats":null,"previous_names":["mahadmuhammad/fips204"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahadMuhammad%2Ffips204","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahadMuhammad%2Ffips204/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahadMuhammad%2Ffips204/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahadMuhammad%2Ffips204/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MahadMuhammad","download_url":"https://codeload.github.com/MahadMuhammad/fips204/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247450800,"owners_count":20940938,"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":[],"created_at":"2024-12-19T15:32:07.345Z","updated_at":"2025-04-06T07:33:59.014Z","avatar_url":"https://github.com/MahadMuhammad.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e [!NOTE]\n\u003e The code here is copied and modified from: https://github.com/GiacomoPope/dilithium-py\n\u003e\n\u003e I studied this code, as a part of my information security course.\n\u003e\n\u003e See, official Dilithium implementation: https://github.com/pq-crystals/dilithium\n#### Example\n\n```python\n\u003e\u003e\u003e from dilithium_py.ml_dsa import ML_DSA_44\n\u003e\u003e\u003e\n\u003e\u003e\u003e # Example of signing\n\u003e\u003e\u003e pk, sk = ML_DSA_44.keygen()\n\u003e\u003e\u003e msg = b\"Your message signed by ML_DSA\"\n\u003e\u003e\u003e sig = ML_DSA_44.sign(sk, msg)\n\u003e\u003e\u003e assert ML_DSA_44.verify(pk, msg, sig)\n\u003e\u003e\u003e\n\u003e\u003e\u003e # Verification will fail with the wrong msg or pk\n\u003e\u003e\u003e assert not ML_DSA_44.verify(pk, b\"\", sig)\n\u003e\u003e\u003e pk_new, sk_new = ML_DSA_44.keygen()\n\u003e\u003e\u003e assert not ML_DSA_44.verify(pk_new, msg, sig)\n```\n\nThe above example would also work with the other NIST levels `ML_DSA_65` and `ML_DSA_87`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahadmuhammad%2Ffips204","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahadmuhammad%2Ffips204","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahadmuhammad%2Ffips204/lists"}