-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed import errors for `use hmac_serialiser::Algorithm` - Changed import for errors to `use hmac_serialiser::Error` from `use hmac_serialiser::errors::Error` - Added `ring` crate as a feature in `Cargo.toml` for those who prefers using ring over RustCrypto
- Loading branch information
Showing
7 changed files
with
379 additions
and
272 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "hmac-serialiser" | ||
version = "0.2.0" | ||
version = "0.3.0" | ||
description = "HMAC Serialisers to cryptographically sign data like Python's ItsDangerous library but in rust." | ||
authors = [ | ||
"KJHJason <[email protected]>", | ||
|
@@ -11,14 +11,31 @@ repository = "https://github.com/KJHJason/hmac-serialiser/tree/master/rust" | |
license = "MIT" | ||
edition = "2021" | ||
|
||
[features] | ||
default = [] | ||
rust_crypto = ["sha1", "sha2", "hkdf", "hmac"] | ||
ring = ["dep:ring"] | ||
|
||
[dependencies] | ||
rand = "0.8.5" | ||
sha2 = "0.10.8" | ||
hmac = "0.12.1" | ||
sha1 = "0.10.6" | ||
hkdf = "0.12.4" | ||
sha1 = { version = "0.10.6", optional = true } | ||
sha2 = { version = "0.10.8", optional = true } | ||
hkdf = { version = "0.12.4", optional = true } | ||
hmac = { version = "0.12.1", optional = true } | ||
ring = { version = "0.17.8", optional = true } | ||
base64 = "0.22.1" | ||
chrono = { version = "0.4.38", features = ["serde"] } | ||
serde = { version = "1.0.203", features = ["derive"] } | ||
serde_json = "1.0.117" | ||
chrono = "0.4.38" | ||
thiserror = "1.0.61" | ||
|
||
[dev-dependencies] | ||
rand = "0.8.5" | ||
chrono = { version = "0.4.38", features = ["serde"] } | ||
|
||
[[test]] | ||
path = "tests/hmac_random.rs" | ||
name = "hmac_random" | ||
|
||
[[test]] | ||
path = "tests/hkdf_random.rs" | ||
name = "hkdf_random" |
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
Oops, something went wrong.