https://github.com/RustCrypto/MACs
Message authentication code algorithms written in pure Rust
https://github.com/RustCrypto/MACs
Last synced: about 1 month ago
JSON representation
Message authentication code algorithms written in pure Rust
- Host: GitHub
- URL: https://github.com/RustCrypto/MACs
- Owner: RustCrypto
- Created: 2017-07-22T18:52:01.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-07T14:40:28.000Z (2 months ago)
- Last Synced: 2025-03-29T07:01:34.555Z (about 1 month ago)
- Language: Rust
- Size: 2.35 MB
- Stars: 278
- Watchers: 5
- Forks: 36
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Security: SECURITY.md
Awesome Lists containing this project
- awesome-cryptography-rust - MACs
README
# RustCrypto: Message Authentication Codes
[![Project Chat][chat-image]][chat-link]
[![dependency status][deps-image]][deps-link]
![Apache2/MIT licensed][license-image]Collection of [Message Authentication Code][1] (MAC) algorithms written in pure Rust.
## Supported Algorithms
| Algorithm | Crate | Crates.io | Documentation | MSRV |
|--------------|----------------|:---------:|:-------------:|:----:|
| [BelT MAC] | [`belt-mac`] | [](https://crates.io/crates/belt-mac) | [](https://docs.rs/belt-mac) | ![MSRV 1.85][msrv-1.85] |
| [CBC-MAC] | [`cbc-mac`] | [](https://crates.io/crates/cbc-mac) | [](https://docs.rs/cbc-mac) | ![MSRV 1.85][msrv-1.85] |
| [CMAC] | [`cmac`] | [](https://crates.io/crates/cmac) | [](https://docs.rs/cmac) | ![MSRV 1.85][msrv-1.85] |
| [HMAC] | [`hmac`] | [](https://crates.io/crates/hmac) | [](https://docs.rs/hmac) | ![MSRV 1.85][msrv-1.85] |
| [PMAC] | [`pmac`] | [](https://crates.io/crates/pmac) | [](https://docs.rs/pmac) | ![MSRV 1.85][msrv-1.85] |
| [Retail MAC] | [`retail-mac`] | [](https://crates.io/crates/retail-mac) | [](https://docs.rs/retail-mac) | ![MSRV 1.85][msrv-1.85] |## License
All crates licensed under either of
* [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
* [MIT license](http://opensource.org/licenses/MIT)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.
[//]: # (badges)
[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260044-MACs
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
[deps-image]: https://deps.rs/repo/github/RustCrypto/MACs/status.svg
[deps-link]: https://deps.rs/repo/github/RustCrypto/MACs
[msrv-1.85]: https://img.shields.io/badge/rustc-1.85.0+-blue.svg[//]: # (crates)
[`belt-mac`]: ./belt-mac
[`cbc-mac`]: ./cbc-mac
[`cmac`]: ./cmac
[`hmac`]: ./hmac
[`pmac`]: ./pmac
[`retail-mac`]: ./retail-mac[//]: # (footnotes)
[1]: https://en.wikipedia.org/wiki/Message_authentication_code
[//]: # (algorithms)
[BelT MAC]: https://apmi.bsu.by/assets/files/std/belt-spec371.pdf
[CBC-MAC]: https://en.wikipedia.org/wiki/CBC-MAC
[CMAC]: https://en.wikipedia.org/wiki/One-key_MAC
[HMAC]: https://en.wikipedia.org/wiki/HMAC
[PMAC]: https://en.wikipedia.org/wiki/PMAC_(cryptography)
[Retail MAC]: https://en.wikipedia.org/wiki/ISO/IEC_9797-1#MAC_algorithm_3