{"id":19595962,"url":"https://github.com/innovativeinventor/constant-time-benchmark","last_synced_at":"2026-05-04T17:35:58.062Z","repository":{"id":135191250,"uuid":"227909633","full_name":"InnovativeInventor/constant-time-benchmark","owner":"InnovativeInventor","description":"Benchmarking various constant time algorithms to validate various implementations against side-channel attacks in Golang","archived":false,"fork":false,"pushed_at":"2019-12-31T04:54:50.000Z","size":1415,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-19T17:05:54.871Z","etag":null,"topics":["golang","security-audit","side-channel","timing-attacks"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","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/InnovativeInventor.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-12-13T19:37:25.000Z","updated_at":"2020-05-03T19:19:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"4020bfe1-84dd-47bf-b1c1-aeb2e93ef88a","html_url":"https://github.com/InnovativeInventor/constant-time-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/InnovativeInventor/constant-time-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InnovativeInventor%2Fconstant-time-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InnovativeInventor%2Fconstant-time-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InnovativeInventor%2Fconstant-time-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InnovativeInventor%2Fconstant-time-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/InnovativeInventor","download_url":"https://codeload.github.com/InnovativeInventor/constant-time-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/InnovativeInventor%2Fconstant-time-benchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32618149,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: 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":["golang","security-audit","side-channel","timing-attacks"],"created_at":"2024-11-11T08:49:44.363Z","updated_at":"2026-05-04T17:35:58.030Z","avatar_url":"https://github.com/InnovativeInventor.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Constant Time Benchmark\n\nThis repo is designed to test and validate various constant time algorithms in\nvarious libraries/languages to ensure that there are no leaks.\n\nRight now, most of the proof of concept code is in `benchmark.ipynb`.\n\n## Golang Number Comparison Stats (standard implementation)\n\n(Should be quicker)\n\n```python\nprint(sns.kdeplot(dataset_0, shade=True))\n```\n\n    AxesSubplot(0.125,0.125;0.775x0.755)\n    Mean 179.13993677555322\n    Median 172.0\n    Min 102.0\n    Std 46.70515679933401\n\n\n![png](output_2_1.png)\n\n(Should take longer)\n\n```python\nprint(sns.kdeplot(dataset_0, shade=True))\n```\n    Mean 181.5736945698738\n    Median 175.0\n    Min 102.0\n    Std 47.23551601113846\n    AxesSubplot(0.125,0.125;0.775x0.755)\n\n\n\n![png](output_4_1.png)\n\nConclusion: It appears that there is little need for constant-time number comparisons in Golang as this already happens with numbers of the same size.\n\nNote: Do not rely on this data alone. Variations in timing/attacks may exist on different devices, implementations, and versions of Golang. Always be cautious.\n\n\n## License\nSee `LICENSE`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnovativeinventor%2Fconstant-time-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finnovativeinventor%2Fconstant-time-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finnovativeinventor%2Fconstant-time-benchmark/lists"}