timing-shield

Crates.iotiming-shield
lib.rstiming-shield
version0.3.0
sourcesrc
created_at2017-06-22 02:19:32.320626
updated_at2022-02-06 17:16:46.487826
descriptionComprehensive timing leak protection for Rust.
homepagehttps://www.chosenplaintext.ca/open-source/rust-timing-shield/
repositoryhttps://github.com/timmclean/rust-timing-shield
max_upload_size
id20106
size63,552
crates (github:zerotier:crates)

documentation

README

rust-timing-shield

Comprehensive timing attack protection for Rust programs.

One of the fundamental challenges of writing software that operates on sensitive information is preventing timing leaks. A timing leak is when there exists a relationship between the values of secret variables in your program and the execution time of your code or other code running on the same hardware. Attackers who are aware of this relationship can use a high-resolution timer to learn secret information that they would not normally be able to access (e.g. extract an SSL key from a web server).

To prevent timing leaks in cryptography code, it is best practice to write code that is constant-time. For a full background on writing constant-time code, see A beginner's guide to constant-time cryptography.

rust-timing-shield is a framework for writing code without timing leaks. See the Getting Started page or the project home page for more information.

Reporting security vulnerabilities

Please visit the Security page for more information.

License

The MIT License (MIT)

Copyright (c) 2017-2022 Tim McLean

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Commit count: 20

cargo fmt