Skip to content

Commit a5b2991

Browse files
committed
update hasher
1 parent bcaac2f commit a5b2991

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hasher.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub const SHA_ALG_NAME: &str = "sha-256";
1717
/// Implementations of this trait are expected only for algorithms listed in
1818
/// the IANA "Named Information Hash Algorithm" registry.
1919
/// See [Hash Function Claim](https://www.ietf.org/archive/id/draft-ietf-oauth-selective-disclosure-jwt-07.html#name-hash-function-claim)
20-
pub trait Hasher: Sync + Send {
20+
pub trait Hasher {
2121
/// Digests input to produce unique fixed-size hash value in bytes.
2222
fn digest(&self, input: &[u8]) -> Vec<u8>;
2323

@@ -27,7 +27,7 @@ pub trait Hasher: Sync + Send {
2727
///
2828
/// The hash algorithm identifier MUST be a hash algorithm value from the
2929
/// "Hash Name String" column in the IANA "Named Information Hash Algorithm"
30-
fn alg_name(&self) -> &'static str;
30+
fn alg_name(&self) -> &str;
3131

3232
/// Returns the base64url-encoded digest of a `disclosure`.
3333
fn encoded_digest(&self, disclosure: &str) -> String {

0 commit comments

Comments
 (0)