aes-gcm

Pure Rust AES-GCM authenticated encryption with optional hardware acceleration

Library
Cargo
v0.11.0
952stars
Apache-2.0 OR MIT

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
79/100Good
Development Activity92
Maintenance52
Community72
Maturity60
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
76/100Good
Architecture80
Code Quality82
Innovation75
Learning Curve65

aes-gcm is a pure-Rust implementation of AES-GCM (Galois/Counter Mode), an Authenticated Encryption with Associated Data (AEAD) cipher widely used for TLS, disk encryption, and secure messaging protocols. It is one of the flagship crates in the RustCrypto AEADs workspace, which also hosts related ciphers such as ChaCha20Poly1305, AES-SIV, and CCM behind a shared aead trait interface.

The crate implements the encryption/decryption traits defined by the aead crate, supports no_std environments for embedded use, and can take advantage of architecture-specific hardware acceleration (AES-NI on x86/x86_64, ARMv8 crypto extensions) via the underlying aes crate, falling back to a constant-time software implementation otherwise. It is downloaded well over 100 million times, making it one of the most widely used cryptography primitives in the Rust ecosystem.

What You Get

  • A pure-Rust AES-GCM implementation conforming to the shared aead crate’s Aead/AeadInPlace traits
  • Optional hardware acceleration (AES-NI, ARMv8 crypto extensions) via the underlying aes crate, with constant-time software fallback
  • no_std support for embedded and constrained environments
  • Optional zeroize integration for securely clearing key material from memory
  • Interoperability with sibling AEAD crates (ChaCha20Poly1305, AES-SIV, CCM, EAX) through a consistent API
  • Dual Apache-2.0/MIT licensing for flexible integration into both open-source and commercial projects

Common Use Cases

  • Encrypting data at rest (files, database fields) with authenticated encryption to detect tampering
  • Implementing custom secure transport or messaging protocols that need AEAD guarantees
  • Embedded and IoT applications requiring no_std cryptography with hardware-accelerated performance
  • Building higher-level cryptographic libraries or key-management systems on top of a vetted AEAD primitive

Under The Hood

Architecture - aes-gcm is one crate within the RustCrypto AEADs Cargo workspace, which groups a dozen related AEAD cipher implementations (aes-gcm, aes-gcm-siv, aes-siv, chacha20poly1305, ccm, eax, mgm, deoxys, ascon) under a shared workspace and a common aead trait crate maintained separately. The aes-gcm crate itself is compact (~390 lines in lib.rs), implementing the GCM authenticated-encryption mode over a generic block cipher parameter, with counter-mode encryption (via the ctr crate) combined with GHASH-based authentication (via the ghash crate). Tech Stack - Pure Rust with no_std support by default; optional dependencies gate in the aes crate for hardware-accelerated (AES-NI/ARMv8) or portable software implementations, and zeroize for secure memory clearing; edition 2024, MSRV 1.85. Code Quality - The core crate has no inline unit tests in src/, relying instead on the workspace’s tests/ directory (e.g. aes128gcm.rs, aes256gcm.rs, other_ivlen.rs) which exercises official NIST/RFC test vectors — a common and appropriate pattern for cryptography crates where correctness is verified against published test vectors rather than ad hoc unit tests; the crate is maintained by the RustCrypto organization with heavy scrutiny given its security-critical nature. API Design - The API surface is deliberately minimal and consistent with sibling AEAD crates via the shared aead trait, so switching between AES-GCM, ChaCha20Poly1305, or AES-SIV requires little code change; documentation links to docs.rs and the crate emphasizes correct nonce handling, a common pitfall for AEAD ciphers.

Used by 12 apps in this directory

Dart
74%
AGPL 3.0

AppFlowy

Productivity · Project Management · Collaboration

75,729

The open-source AI workspace that puts your data, your rules — with local LLMs, CRDT collaboration, and full self-hosting built in.

View details
66
Repo Health
81
Technical
66
Dependency
Built with
Dart74%
Rust24%
Updated 1 weeks ago
TypeScript
75%
GPL 3.0

Bramble

Password Manager · Security · Authentication

315

Local-first, end-to-end encrypted password manager that syncs your vault directly between your own devices over a private peer-to-peer mesh — no server, no account, no cloud in the middle.

View details
73
Repo Health
84
Technical
72
Dependency
Built with
TypeScript75%
Updated today
Rust
100%
Other

Fluree DB

Databases

445

A temporal, verifiable graph database with git-like branching, integrated vector/text/geo search, and RDF/SPARQL/JSON-LD/openCypher support — benchmarked at 10.4x faster than the next database on the full Wikidata dump.

View details
86
Repo Health
74
Technical
65
Dependency
Built with
Rust100%
Updated yesterday
Rust
41%
Other

Hook0

Devops

1,477

Open-source Webhooks-as-a-Service: deliver events to your users with auto-retry, signed payloads, and a real-time subscriber dashboard — all without building the infrastructure yourself.

View details
83
Repo Health
82
Technical
70
Dependency
Built with
Rust41%
TypeScript17%
JavaScript15%
Updated today
TypeScript
67%
MIT

Hoppscotch

Developer Tools

80,055

A lightweight, offline-capable API development ecosystem for testing HTTP, GraphQL, WebSocket, MQTT, and SSE endpoints across web, desktop, and CLI.

View details
91
Repo Health
83
Technical
66
Dependency
Built with
TypeScript67%
Vue23%
Updated 3 days ago
TypeScript
75%
Other

Jan

AI Assistants

44,052

Run LLMs 100% locally with full privacy, or connect to cloud AI — your machine, your data, your control.

View details
90
Repo Health
81
Technical
66
Dependency
Built with
TypeScript75%
Rust21%
Updated today
JavaScript
57%
Other

Lokus

Note Taking · Knowledge Management

774

Local-first note-taking with graph view, canvas & AI plugins—your Markdown files, zero telemetry, blazing-fast Rust performance.

View details
78
Repo Health
75
Technical
65
Dependency
Built with
JavaScript57%
HTML24%
Updated 1 weeks ago
Rust
95%
Apache 2.0

obscura

AI Agents · Developer Tools

21,654

A lightweight, stealthy headless browser written in Rust — drop-in compatible with Puppeteer and Playwright, built for AI agents and web scraping at scale.

View details
80
Repo Health
79
Technical
75
Dependency
Built with
Rust95%
Updated 4 days ago
Python
74%
AGPL 3.0

OpenViking

Databases · AI Development

29,711

An open-source context database that gives AI agents a unified filesystem for memory, resources, and skills with hierarchical tiered retrieval.

View details
84
Repo Health
75
Technical
65
Dependency
Built with
Python74%
Rust14%
Updated today

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search