• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

benches/H03-May-2022-42

src/H03-May-2022-721566

tests/H03-May-2022-251197

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D01-Jan-197074 65

CHANGELOG.mdH A D29-Nov-19731.7 KiB6041

Cargo.tomlH A D01-Jan-19701.2 KiB4337

Cargo.toml.orig-cargoH A D29-Nov-1973615 2320

LICENSE-APACHEH A D29-Nov-197310.6 KiB202169

LICENSE-MITH A D29-Nov-19731 KiB2622

README.mdH A D29-Nov-19732.6 KiB7551

README.md

1# RustCrypto: Counter Mode (CTR)
2
3[![Crate][crate-image]][crate-link]
4[![Docs][docs-image]][docs-link]
5![Apache2/MIT licensed][license-image]
6![Rust Version][rustc-image]
7[![Project Chat][chat-image]][chat-link]
8[![Build Status][build-image]][build-link]
9[![HAZMAT][hazmat-image]][hazmat-link]
10
11Generic implementations of the [Counter Mode (CTR)][1] of operation for
12block ciphers, which enables adapting block ciphers into stream ciphers.
13
14[Documentation][docs-link]
15
16<img alt="diagram" src="https://raw.githubusercontent.com/RustCrypto/meta/master/img/stream-ciphers/ctr.png" width="500px">
17
18## ⚠️ Security Warning: [Hazmat!][hazmat-link]
19
20This crate does not ensure ciphertexts are authentic (i.e. by using a MAC to
21verify ciphertext integrity), which can lead to serious vulnerabilities
22if used incorrectly!
23
24No security audits of this crate have ever been performed, and it has not been
25thoroughly assessed to ensure its operation is constant-time on common CPU
26architectures.
27
28**USE AT YOUR OWN RISK!**
29
30## Minimum Supported Rust Version
31
32Rust **1.41** or higher.
33
34Minimum supported Rust version can be changed in the future, but it will be
35done with a minor version bump.
36
37## SemVer Policy
38
39- All on-by-default features of this library are covered by SemVer
40- MSRV is considered exempt from SemVer as noted above
41
42## License
43
44Licensed under either of:
45
46 * [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)
47 * [MIT license](http://opensource.org/licenses/MIT)
48
49at your option.
50
51### Contribution
52
53Unless you explicitly state otherwise, any contribution intentionally submitted
54for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
55dual licensed as above, without any additional terms or conditions.
56
57[//]: # (badges)
58
59[crate-image]: https://img.shields.io/crates/v/ctr.svg
60[crate-link]: https://crates.io/crates/ctr
61[docs-image]: https://docs.rs/ctr/badge.svg
62[docs-link]: https://docs.rs/ctr/
63[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg
64[rustc-image]: https://img.shields.io/badge/rustc-1.41+-blue.svg
65[chat-image]: https://img.shields.io/badge/zulip-join_chat-blue.svg
66[chat-link]: https://rustcrypto.zulipchat.com/#narrow/stream/260049-stream-ciphers
67[build-image]: https://github.com/RustCrypto/stream-ciphers/workflows/ctr/badge.svg?branch=master&event=push
68[build-link]: https://github.com/RustCrypto/stream-ciphers/actions?query=workflow%3Actr
69[hazmat-image]: https://img.shields.io/badge/crypto-hazmat%E2%9A%A0-red.svg
70[hazmat-link]: https://github.com/RustCrypto/meta/blob/master/HAZMAT.md
71
72[//]: # (footnotes)
73
74[1]: https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#CTR
75