File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ pub const SHA_ALG_NAME: &str = "sha-256";
17
17
/// Implementations of this trait are expected only for algorithms listed in
18
18
/// the IANA "Named Information Hash Algorithm" registry.
19
19
/// 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 {
21
21
/// Digests input to produce unique fixed-size hash value in bytes.
22
22
fn digest ( & self , input : & [ u8 ] ) -> Vec < u8 > ;
23
23
@@ -27,7 +27,7 @@ pub trait Hasher: Sync + Send {
27
27
///
28
28
/// The hash algorithm identifier MUST be a hash algorithm value from the
29
29
/// "Hash Name String" column in the IANA "Named Information Hash Algorithm"
30
- fn alg_name ( & self ) -> & ' static str ;
30
+ fn alg_name ( & self ) -> & str ;
31
31
32
32
/// Returns the base64url-encoded digest of a `disclosure`.
33
33
fn encoded_digest ( & self , disclosure : & str ) -> String {
You can’t perform that action at this time.
0 commit comments