{"id":47947822,"url":"https://github.com/karlmcguire/ige","last_synced_at":"2026-04-04T08:51:30.071Z","repository":{"id":57486509,"uuid":"137951137","full_name":"karlmcguire/ige","owner":"karlmcguire","description":"IGE block cipher mode for Go.","archived":false,"fork":false,"pushed_at":"2018-06-20T20:38:12.000Z","size":20,"stargazers_count":13,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-30T23:45:04.251Z","etag":null,"topics":["aes","aes-ige","cryptography"],"latest_commit_sha":null,"homepage":"","language":"Go","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/karlmcguire.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}},"created_at":"2018-06-19T22:13:20.000Z","updated_at":"2025-02-15T09:35:55.000Z","dependencies_parsed_at":"2022-09-01T21:02:05.900Z","dependency_job_id":null,"html_url":"https://github.com/karlmcguire/ige","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karlmcguire/ige","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlmcguire%2Fige","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlmcguire%2Fige/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlmcguire%2Fige/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlmcguire%2Fige/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karlmcguire","download_url":"https://codeload.github.com/karlmcguire/ige/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karlmcguire%2Fige/sbom","scorecard":{"id":550483,"data":{"date":"2025-08-11","repo":{"name":"github.com/karlmcguire/ige","commit":"493ac28b459ae277bfb2e5aecff5807dcae4bc6d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/24 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T10:42:26.493Z","repository_id":57486509,"created_at":"2025-08-20T10:42:26.493Z","updated_at":"2025-08-20T10:42:26.493Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31393780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"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":["aes","aes-ige","cryptography"],"created_at":"2026-04-04T08:51:29.855Z","updated_at":"2026-04-04T08:51:30.052Z","avatar_url":"https://github.com/karlmcguire.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ige\n[![GoDoc](https://img.shields.io/badge/api-reference-blue.svg)](https://godoc.org/github.com/karlmcguire/ige)\n[![Go Report Card](https://img.shields.io/badge/go%20report-A%2B-green.svg)](https://goreportcard.com/report/github.com/karlmcguire/ige)\n[![Coverage](https://img.shields.io/badge/coverage-100%25-ff69b4.svg)](https://gocover.io/karlmcguire/ige)\n\nIGE block cipher mode for Go.\n\n## about\n\nIGE is a block cipher mode usually used with AES. It's most notably used in Telegram's [MTProto Protocol](https://core.telegram.org/mtproto). It can be defined as the following function: \n\n```\nc_i = f_k(p_i ^ c_{i-1}) ^ p_{i-1}\n```\n\n* `c_i` is ciphertext of the `i` block\n* `p_i` is plaintext of the `i` block\n* `f_k` is the block cipher function with `k` as the key\n\nHere is a diagram of the above function:\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://i.imgur.com/CpilCFB.png\" /\u003e\n\u003c/p\u003e\n\nNote that `c_0` and `m_0` in the diagram represent the initilization vectors. This implementation requires an initialization vector of two blocks. The first block is used as `c_0`. The second block is used as `m_0`.\n\n## testing\n\nI'm using the test vectors described in the [official OpenSSL IGE paper](https://www.links.org/files/openssl-ige.pdf). You can execute the tests yourself by running:\n\n```\n$ go test\n```\n\n### test vector 1\n\n#### key\n\n```\n00010203 04050607 08090A0B 0C0D0E0F\n```\n\n#### initialization vector\n\n```\n00010203 04050607 08090A0B 0C0D0E0F\n10111213 14151617 18191A1B 1C1D1E1F\n```\n\n#### plaintext\n\n```\n00000000 00000000 00000000 00000000\n00000000 00000000 00000000 00000000\n```\n\n#### ciphertext\n\n```\n1A8519A6 557BE652 E9DA8E43 DA4EF445\n3CF456B4 CA488AA3 83C79C98 B34797CB\n```\n\n### test vector 2\n\n#### key\n\n```\n54686973 20697320 616E2069 6D706C65\n```\n\n#### initialization vector\n\n```\n6D656E74 6174696F 6E206F66 20494745\n206D6F64 6520666F 72204F70 656E5353\n```\n\n#### plaintext\n\n```\n99706487 A1CDE613 BC6DE0B6 F24B1C7A\nA448C8B9 C3403E34 67A8CAD8 9340F53B\n```\n\n#### ciphertext\n\n```\n4C2E204C 65742773 20686F70 65204265\n6E20676F 74206974 20726967 6874210A\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarlmcguire%2Fige","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarlmcguire%2Fige","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarlmcguire%2Fige/lists"}