Skip to content

Commit

Permalink
add debug and clone for keys enum
Browse files Browse the repository at this point in the history
  • Loading branch information
junkurihara committed Feb 29, 2024
1 parent 714bec6 commit 96d3e78
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"

[workspace.package]
edition = "2021"
version = "0.0.7"
version = "0.0.8"
authors = ["Jun Kurihara"]
homepage = "https://github.com/junkurihara/httpsig-rs"
repository = "https://github.com/junkurihara/httpsig-rs"
Expand Down
2 changes: 1 addition & 1 deletion httpsig-hyper/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rust-version.workspace = true
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
httpsig = { path = "../httpsig", version = "0.0.7" }
httpsig = { path = "../httpsig", version = "0.0.8" }

thiserror = { version = "1.0.57" }
tracing = { version = "0.1.40" }
Expand Down
2 changes: 2 additions & 0 deletions httpsig/src/crypto/asymmetric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ mod params_oids {
}

/* -------------------------------- */
#[derive(Debug, Clone)]
/// Secret key for http signature
/// Name conventions follow [Section-6.2.2, RFC9421](https://datatracker.ietf.org/doc/html/rfc9421#section-6.2.2)
pub enum SecretKey {
Expand Down Expand Up @@ -170,6 +171,7 @@ impl super::VerifyingKey for SecretKey {
}

/* -------------------------------- */
#[derive(Debug, Clone)]
/// Public key for http signature, only for asymmetric algorithm
/// Name conventions follow [Section 6.2.2, RFC9421](https://datatracker.ietf.org/doc/html/rfc9421#section-6.2.2)
pub enum PublicKey {
Expand Down
1 change: 1 addition & 0 deletions httpsig/src/crypto/symmetric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ use sha2::{Digest, Sha256};
type HmacSha256 = Hmac<sha2::Sha256>;

/* -------------------------------- */
#[derive(Debug, Clone)]
/// Shared key for http signature
/// Name conventions follow [Section 6.2.2, RFC9421](https://datatracker.ietf.org/doc/html/rfc9421#section-6.2.2)
pub enum SharedKey {
Expand Down

0 comments on commit 96d3e78

Please sign in to comment.