File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ pub trait RandomizedPrehashSigner<S> {
43
43
///
44
44
/// Allowed lengths are algorithm-dependent and up to a particular
45
45
/// implementation to decide.
46
- fn sign_prehash_with_rng < R : TryCryptoRng > (
46
+ fn sign_prehash_with_rng < R : TryCryptoRng + ? Sized > (
47
47
& self ,
48
48
rng : & mut R ,
49
49
prehash : & [ u8 ] ,
@@ -103,7 +103,7 @@ pub trait AsyncRandomizedPrehashSigner<S> {
103
103
///
104
104
/// Allowed lengths are algorithm-dependent and up to a particular
105
105
/// implementation to decide.
106
- async fn sign_prehash_with_rng_async < R : TryCryptoRng > (
106
+ async fn sign_prehash_with_rng_async < R : TryCryptoRng + ? Sized > (
107
107
& self ,
108
108
rng : & mut R ,
109
109
prehash : & [ u8 ] ,
Original file line number Diff line number Diff line change @@ -201,7 +201,7 @@ where
201
201
#[ allow( async_fn_in_trait) ]
202
202
pub trait AsyncRandomizedSigner < S > {
203
203
/// Sign the given message and return a digital signature
204
- async fn sign_with_rng_async < R : CryptoRng > ( & self , rng : & mut R , msg : & [ u8 ] ) -> S {
204
+ async fn sign_with_rng_async < R : CryptoRng + ? Sized > ( & self , rng : & mut R , msg : & [ u8 ] ) -> S {
205
205
self . try_sign_with_rng_async ( rng, msg)
206
206
. await
207
207
. expect ( "signature operation failed" )
@@ -212,7 +212,7 @@ pub trait AsyncRandomizedSigner<S> {
212
212
///
213
213
/// The main intended use case for signing errors is when communicating
214
214
/// with external signers, e.g. cloud KMS, HSMs, or other hardware tokens.
215
- async fn try_sign_with_rng_async < R : CryptoRng > (
215
+ async fn try_sign_with_rng_async < R : TryCryptoRng + ? Sized > (
216
216
& self ,
217
217
rng : & mut R ,
218
218
msg : & [ u8 ] ,
@@ -224,7 +224,7 @@ impl<S, T> AsyncRandomizedSigner<S> for T
224
224
where
225
225
T : RandomizedSigner < S > ,
226
226
{
227
- async fn try_sign_with_rng_async < R : CryptoRng > (
227
+ async fn try_sign_with_rng_async < R : TryCryptoRng + ? Sized > (
228
228
& self ,
229
229
rng : & mut R ,
230
230
msg : & [ u8 ] ,
You can’t perform that action at this time.
0 commit comments