-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
563 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# RustCrypto: AES-CTR | ||
|
||
[![Crate][crate-image]][crate-link] | ||
[![Docs][docs-image]][docs-link] | ||
![Apache2/MIT licensed][license-image] | ||
![Rust Version][rustc-image] | ||
[![Build Status][build-image]][build-link] | ||
[![HAZMAT][hazmat-image]][hazmat-link] | ||
|
||
Pure Rust implementation of the [Advanced Encryption Standard (AES)][1] | ||
in [Counter Mode][2]. | ||
|
||
Provides a high-performance implementation based on AES-NI and other x86(-64) | ||
CPU intrinsics when available, or otherwise falls back on a bitsliced software | ||
implementation and the [`ctr`][3] crate. | ||
|
||
[Documentation][docs-link] | ||
|
||
### ⚠️ Security Warning: [Hazmat!][hazmat-link] | ||
|
||
This crate does not ensure ciphertexts are authentic (i.e. by using a MAC to | ||
verify ciphertext integerity), which can lead to serious vulnerabilities | ||
if used incorrectly! | ||
|
||
To avoid this, use an [AEAD][4] mode based on AES, such as [AES-GCM][5] or | ||
[AES-GCM-SIV][6]. | ||
|
||
See the [RustCrypto/AEADs][7] repository for more information. | ||
|
||
USE AT YOUR OWN RISK! | ||
|
||
## Minimum Supported Rust Version | ||
|
||
Rust **1.41** or higher. | ||
|
||
Minimum supported Rust version can be changed in the future, but it will be | ||
done with a minor version bump. | ||
|
||
## SemVer Policy | ||
|
||
- All on-by-default features of this library are covered by SemVer | ||
- MSRV is considered exempt from SemVer as noted above | ||
|
||
## License | ||
|
||
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) | ||
|
||
[crate-image]: https://img.shields.io/crates/v/aes-ctr.svg | ||
[crate-link]: https://crates.io/crates/aes-ctr | ||
[docs-image]: https://docs.rs/aes-ctr/badge.svg | ||
[docs-link]: https://docs.rs/aes-ctr/ | ||
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg | ||
[rustc-image]: https://img.shields.io/badge/rustc-1.41+-blue.svg | ||
[hazmat-image]: https://img.shields.io/badge/crypto-hazmat%E2%9A%A0%EF%B8%8F-red.svg | ||
[hazmat-link]: https://github.com/RustCrypto/meta/wiki/About-%22hazmat%22-crates | ||
[build-image]: https://github.com/RustCrypto/stream-ciphers/workflows/aes-ctr/badge.svg?branch=master&event=push | ||
[build-link]: https://github.com/RustCrypto/stream-ciphers/actions?query=workflow%3Aaes-ctr | ||
|
||
[//]: # (general links) | ||
|
||
[1]: https://en.wikipedia.org/wiki/Advanced_Encryption_Standard | ||
[2]: https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#Counter_(CTR) | ||
[3]: https://github.com/RustCrypto/stream-ciphers/tree/master/ctr | ||
[4]: https://en.wikipedia.org/wiki/Authenticated_encryption | ||
[5]: https://github.com/RustCrypto/AEADs/tree/master/aes-gcm | ||
[6]: https://github.com/RustCrypto/AEADs/tree/master/aes-gcm-siv | ||
[7]: https://github.com/RustCrypto/AEADs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# RustCrypto: Cipher Feedback Mode (CFB) | ||
|
||
[![Crate][crate-image]][crate-link] | ||
[![Docs][docs-image]][docs-link] | ||
![Apache2/MIT licensed][license-image] | ||
![Rust Version][rustc-image] | ||
[![Build Status][build-image]][build-link] | ||
[![HAZMAT][hazmat-image]][hazmat-link] | ||
|
||
Generic [Cipher Feedback (CFB)][1] mode implementation as a | ||
[self-synchronizing stream cipher][2]. | ||
|
||
[Documentation][docs-link] | ||
|
||
![Diagram](https://github.com/RustCrypto/meta/blob/master/img/stream-ciphers/cfb.png?raw=true) | ||
|
||
## ⚠️ Security Warning: [Hazmat!][hazmat-link] | ||
|
||
This crate does not ensure ciphertexts are authentic (i.e. by using a MAC to | ||
verify ciphertext integerity), which can lead to serious vulnerabilities | ||
if used incorrectly! | ||
|
||
No security audits of this crate have ever been performed, and it has not been | ||
thoroughly assessed to ensure its operation is constant-time on common CPU | ||
architectures. | ||
|
||
USE AT YOUR OWN RISK! | ||
|
||
## Minimum Supported Rust Version | ||
|
||
Rust **1.41** or higher. | ||
|
||
Minimum supported Rust version can be changed in the future, but it will be | ||
done with a minor version bump. | ||
|
||
## SemVer Policy | ||
|
||
- All on-by-default features of this library are covered by SemVer | ||
- MSRV is considered exempt from SemVer as noted above | ||
|
||
## License | ||
|
||
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) | ||
|
||
[crate-image]: https://img.shields.io/crates/v/cfb-mode.svg | ||
[crate-link]: https://crates.io/crates/cfb-mode | ||
[docs-image]: https://docs.rs/cfb-mode/badge.svg | ||
[docs-link]: https://docs.rs/cfb-mode/ | ||
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg | ||
[rustc-image]: https://img.shields.io/badge/rustc-1.41+-blue.svg | ||
[hazmat-image]: https://img.shields.io/badge/crypto-hazmat%E2%9A%A0%EF%B8%8F-red.svg | ||
[hazmat-link]: https://github.com/RustCrypto/meta/wiki/About-%22hazmat%22-crates | ||
[build-image]: https://github.com/RustCrypto/stream-ciphers/workflows/cfb-mode/badge.svg?branch=master&event=push | ||
[build-link]: https://github.com/RustCrypto/stream-ciphers/actions?query=workflow%3Acfb-mode | ||
|
||
[//]: # (footnotes) | ||
|
||
[1]: https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#CFB | ||
[2]: https://en.wikipedia.org/wiki/Stream_cipher#Self-synchronizing_stream_ciphers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# RustCrypto: CFB8 | ||
|
||
[![Crate][crate-image]][crate-link] | ||
[![Docs][docs-image]][docs-link] | ||
![Apache2/MIT licensed][license-image] | ||
![Rust Version][rustc-image] | ||
[![Build Status][build-image]][build-link] | ||
[![HAZMAT][hazmat-image]][hazmat-link] | ||
|
||
Generic [8-bit Cipher Feedback (CFB8)][1] mode implementation as a | ||
[self-synchronizing stream cipher][2]. | ||
|
||
[Documentation][docs-link] | ||
|
||
## ⚠️ Security Warning: [Hazmat!][hazmat-link] | ||
|
||
This crate does not ensure ciphertexts are authentic (i.e. by using a MAC to | ||
verify ciphertext integerity), which can lead to serious vulnerabilities | ||
if used incorrectly! | ||
|
||
No security audits of this crate have ever been performed, and it has not been | ||
thoroughly assessed to ensure its operation is constant-time on common CPU | ||
architectures. | ||
|
||
USE AT YOUR OWN RISK! | ||
|
||
## Minimum Supported Rust Version | ||
|
||
Rust **1.41** or higher. | ||
|
||
Minimum supported Rust version can be changed in the future, but it will be | ||
done with a minor version bump. | ||
|
||
## SemVer Policy | ||
|
||
- All on-by-default features of this library are covered by SemVer | ||
- MSRV is considered exempt from SemVer as noted above | ||
|
||
## License | ||
|
||
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) | ||
|
||
[crate-image]: https://img.shields.io/crates/v/cfb8.svg | ||
[crate-link]: https://crates.io/crates/cfb8 | ||
[docs-image]: https://docs.rs/cfb8/badge.svg | ||
[docs-link]: https://docs.rs/cfb8/ | ||
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg | ||
[rustc-image]: https://img.shields.io/badge/rustc-1.41+-blue.svg | ||
[hazmat-image]: https://img.shields.io/badge/crypto-hazmat%E2%9A%A0%EF%B8%8F-red.svg | ||
[hazmat-link]: https://github.com/RustCrypto/meta/wiki/About-%22hazmat%22-crates | ||
[build-image]: https://github.com/RustCrypto/stream-ciphers/workflows/cfb8/badge.svg?branch=master&event=push | ||
[build-link]: https://github.com/RustCrypto/stream-ciphers/actions?query=workflow%3Acfb8 | ||
|
||
[//]: # (footnotes) | ||
|
||
[1]: https://en.wikipedia.org/wiki/Block_cipher_mode_of_operation#CFB | ||
[2]: https://en.wikipedia.org/wiki/Stream_cipher#Self-synchronizing_stream_ciphers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.