{"id":51509501,"url":"https://github.com/murphsicles/aes-gcm","last_synced_at":"2026-07-08T04:30:56.977Z","repository":{"id":362042150,"uuid":"1257001798","full_name":"murphsicles/aes-gcm","owner":"murphsicles","description":"AES-256-GCM AEAD encryption for Zeta","archived":false,"fork":false,"pushed_at":"2026-06-02T09:47:05.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-02T11:18:51.741Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/murphsicles.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-02T09:19:06.000Z","updated_at":"2026-06-02T09:47:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/murphsicles/aes-gcm","commit_stats":null,"previous_names":["murphsicles/aes-gcm"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/murphsicles/aes-gcm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Faes-gcm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Faes-gcm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Faes-gcm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Faes-gcm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/murphsicles","download_url":"https://codeload.github.com/murphsicles/aes-gcm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/murphsicles%2Faes-gcm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35252324,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-08T02:00:06.796Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2026-07-08T04:30:56.292Z","updated_at":"2026-07-08T04:30:56.957Z","avatar_url":"https://github.com/murphsicles.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡ @crypto/aes-gcm — AES-256-GCM Authenticated Encryption for Zeta\n\n**Port of the Rust `aes-gcm` crate (v0.10.x). Pure Zeta implementation of\nAES-256 in Galois/Counter Mode per NIST SP 800-38D.**\n\n---\n\n## 📦 Package\n\n```\nzorbs add @crypto/aes-gcm\n```\n\n## 🔧 API\n\n### Low-level AES-256\n\n```zeta\nlet cipher = Aes256::new(\u0026key);\nlet encrypted = cipher.encrypt_block(\u0026block);  // 16-byte block\nlet decrypted = cipher.decrypt_block(\u0026encrypted);\n```\n\n### AES-256-GCM (Recommended)\n\n```zeta\n// Encrypt\nlet (ciphertext, tag) = aead.encrypt(\u0026nonce, plaintext, aad);\n\n// Decrypt (returns empty on auth failure)\nlet plaintext = aead.decrypt(\u0026nonce, ciphertext, aad, \u0026tag);\n```\n\n### Convenience AEAD (ciphertext || tag)\n\n```zeta\nlet encrypted = aead_encrypt(\u0026key, \u0026nonce, \"hello\", \"aad\");\nlet decrypted = aead_decrypt(\u0026key, \u0026nonce, \u0026encrypted, \"aad\");\n```\n\n### Key Wrap / Unwrap\n\n```zeta\nlet wrapped = key_wrap(\u0026kek, \u0026key);\nlet unwrapped = key_unwrap(\u0026kek, \u0026wrapped);\n```\n\n## 🔒 Security Properties\n\n- **128-bit security level** (AES-256 provides 256-bit keys with 128-bit post-quantum security)\n- **Authenticated encryption**: confidentiality + integrity\n- **Nonce reuse is catastrophic**: never reuse a (key, nonce) pair\n- **Constant-time tag verification**: prevents timing oracles\n\n## 📦 What's Inside\n\n| Module | Source | Description |\n|---|---|---|\n| `Aes256` | aes v0.8.x | AES-256 block cipher (14 rounds) |\n| `Aes256Gcm` | aes-gcm v0.10.x | GCM mode AEAD |\n| `GHash` | ghash v0.5.x | GHASH authentication |\n| `aead_encrypt/decrypt` | aead traits | Convenience AEAD API |\n| `key_wrap/unwrap` | — | Key wrapping with AES-GCM |\n\n## 📄 License\n\nMIT OR Apache-2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphsicles%2Faes-gcm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmurphsicles%2Faes-gcm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmurphsicles%2Faes-gcm/lists"}