File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -395,3 +395,10 @@ impl std::io::Read for RngCore {
395
395
Ok ( buf. len ( ) )
396
396
}
397
397
}
398
+
399
+ // Implement `CryptoRng` for references to an `CryptoRng`.
400
+ impl < ' a , R : CryptoRng + ?Sized > CryptoRng for & ' a mut R { }
401
+
402
+ // Implement `CryptoRng` for boxed references to an `CryptoRng`.
403
+ #[ cfg( feature="alloc" ) ]
404
+ impl < R : CryptoRng + ?Sized > CryptoRng for Box < R > { }
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ const SEED_WORDS: usize = 8; // 128 bit key followed by 128 bit iv
62
62
/// Implementation Of HC-128 Stream Cipher"](
63
63
/// http://library.isical.ac.in:8080/jspui/bitstream/123456789/6636/1/TH431.pdf).
64
64
///
65
- /// [5]: Internet Engineering Task Force (Februari 2015),
65
+ /// [5]: Internet Engineering Task Force (February 2015),
66
66
/// ["Prohibiting RC4 Cipher Suites"](https://tools.ietf.org/html/rfc7465).
67
67
///
68
68
/// [`BlockRng`]: ../../../rand_core/block/struct.BlockRng.html
You can’t perform that action at this time.
0 commit comments