fix: harden signing key handling (#1166)
* fix: harden signing key handling * fix: validate static keys at compile time
This commit is contained in:
parent
38428f66bc
commit
d5c46b3fe0
1 changed files with 214 additions and 43 deletions
|
|
@ -70,6 +70,7 @@ base64 = { version = "0.23", optional = true }
|
|||
# for SEP-2322 requestState integrity sealing (opt-in via the `request-state` feature)
|
||||
hmac = { version = "0.13", optional = true }
|
||||
sha2 = { version = "0.11", optional = true }
|
||||
zeroize = { version = "1", optional = true }
|
||||
|
||||
# for HTTP client
|
||||
reqwest = { version = "0.13.2", default-features = false, features = [
|
||||
|
|
@ -128,7 +129,7 @@ macros = ["dep:rmcp-macros", "dep:pastey"]
|
|||
elicitation = ["dep:url"]
|
||||
|
||||
# SEP-2322 requestState integrity helper (HMAC-SHA256 seal/open codec)
|
||||
request-state = ["dep:hmac", "dep:sha2", "base64"]
|
||||
request-state = ["dep:hmac", "dep:sha2", "dep:zeroize", "base64"]
|
||||
|
||||
# reqwest http client
|
||||
__reqwest = ["dep:reqwest"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue