Comprehensive timing leak protection for Rust programs https://www.chosenplaintext.ca/open-source/rust-timing-shield/
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
Cargo.toml
LICENSE.txt
README.md

README.md

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 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.