#encryption #encryption-key #public-key #sender #transmit

no-std kem

Traits for Key Encapsulation Mechanisms (KEMs): public-key cryptosystems designed to enable a sender (a.k.a. encapsulator) to generate and encrypt a short secret key and transmit it to a receiver (a.k.a. decapsulator) confidentially

11 releases

Uses new Rust 2024

0.4.0-rc.5 Jan 23, 2026
0.4.0-rc.1 Dec 27, 2025
0.4.0-pre.2 Nov 5, 2025
0.3.0 Apr 3, 2026
0.0.0 Feb 9, 2021

#2926 in Cryptography

Download history 25487/week @ 2026-01-23 25533/week @ 2026-01-30 28201/week @ 2026-02-06 31264/week @ 2026-02-13 34861/week @ 2026-02-20 35610/week @ 2026-02-27 43152/week @ 2026-03-06 41903/week @ 2026-03-13 39155/week @ 2026-03-20 44149/week @ 2026-03-27 49804/week @ 2026-04-03 66658/week @ 2026-04-10 67923/week @ 2026-04-17 84006/week @ 2026-04-24 96084/week @ 2026-05-01 112502/week @ 2026-05-08

372,815 downloads per month
Used in 214 crates (18 directly)

Apache-2.0 OR MIT

41KB
670 lines

RustCrypto: Key Encapsulation Mechanisms (KEMs)

crate Docs Build Status Apache2/MIT licensed Rust Version Project Chat

About

This crate provides a common set of traits for key encapsulation mechanisms—algorithms for non-interactively establishing secrets between peers.

This is intended to be implemented by libraries which produce or contain implementations of key encapsulation mechanisms, and used by libraries which want to produce or consume encapsulated secrets while generically supporting any compatible backend.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.4–1.8MB
~39K SLoC