-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document chacha20 and salsa20 crates (closes #17)
Improve rustdoc with examples and add a `README.md` to each crate
- Loading branch information
Showing
12 changed files
with
217 additions
and
17 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
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
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,58 @@ | ||
# ChaCha20 | ||
|
||
[![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] | ||
|
||
[ChaCha20][1] is a [stream cipher][2] which is designed to support | ||
high-performance software implementations. | ||
|
||
It improves upon the previous [Salsa20][3] stream cipher with increased | ||
per-round diffusion at no cost to performance. | ||
|
||
[Documentation][docs-link] | ||
|
||
## Security Warning | ||
|
||
This crate does not ensure ciphertexts are authentic! Thus ciphertext integrity | ||
is not verified, which can lead to serious vulnerabilities! | ||
|
||
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! | ||
|
||
## 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/chacha20.svg | ||
[crate-link]: https://crates.io/crates/chacha20 | ||
[docs-image]: https://docs.rs/chacha20/badge.svg | ||
[docs-link]: https://docs.rs/chacha20/ | ||
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg | ||
[rustc-image]: https://img.shields.io/badge/rustc-1.27+-blue.svg | ||
[build-image]: https://travis-ci.org/RustCrypto/stream-ciphers.svg?branch=master | ||
[build-link]: https://travis-ci.org/RustCrypto/stream-ciphers | ||
|
||
[//]: # (general links) | ||
|
||
[1]: https://en.wikipedia.org/wiki/Salsa20#ChaCha_variant | ||
[2]: https://en.wikipedia.org/wiki/Stream_cipher | ||
[3]: https://en.wikipedia.org/wiki/Salsa20 |
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
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
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,55 @@ | ||
# Salsa20 | ||
|
||
[![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] | ||
|
||
[Salsa20][1] is a [stream cipher][2] which is designed to support | ||
high-performance software implementations. | ||
|
||
[Documentation][docs-link] | ||
|
||
## Security Warning | ||
|
||
This crate does not ensure ciphertexts are authentic! Thus ciphertext integrity | ||
is not verified, which can lead to serious vulnerabilities! | ||
|
||
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! | ||
|
||
## 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/salsa20.svg | ||
[crate-link]: https://crates.io/crates/salsa20 | ||
[docs-image]: https://docs.rs/salsa20/badge.svg | ||
[docs-link]: https://docs.rs/salsa20/ | ||
[license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg | ||
[rustc-image]: https://img.shields.io/badge/rustc-1.27+-blue.svg | ||
[build-image]: https://travis-ci.org/RustCrypto/stream-ciphers.svg?branch=master | ||
[build-link]: https://travis-ci.org/RustCrypto/stream-ciphers | ||
|
||
[//]: # (general links) | ||
|
||
[1]: https://en.wikipedia.org/wiki/Salsa20#ChaCha_variant | ||
[2]: https://en.wikipedia.org/wiki/Stream_cipher | ||
[3]: https://en.wikipedia.org/wiki/Salsa20 |
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