-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add serde support for relevant types (#193)
Serde is an important part of the Rust ecosystem, and we want to ensure users can securely serialize and deserialize types easily and securely. The Serialize and Deserialize implementations here delegate to constant-time operations wherever possible. The phrase "relevant types" above means any type that we expect a user may want to send outside the application, e.g. to a database or across the network. For now, this includes: - pwhash::PasswordHash - hash::Digest - auth::Tag - kdf::Salt By not implementing serde for other types, we're helping to ensure that the secure usage of these types is on the easy path. Co-authored-by: Vincent Mutolo <[email protected]>
- Loading branch information
Showing
5 changed files
with
155 additions
and
2 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