File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 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 {
395395 Ok ( buf. len ( ) )
396396 }
397397}
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
6262/// Implementation Of HC-128 Stream Cipher"](
6363/// http://library.isical.ac.in:8080/jspui/bitstream/123456789/6636/1/TH431.pdf).
6464///
65- /// [5]: Internet Engineering Task Force (Februari 2015),
65+ /// [5]: Internet Engineering Task Force (February 2015),
6666/// ["Prohibiting RC4 Cipher Suites"](https://tools.ietf.org/html/rfc7465).
6767///
6868/// [`BlockRng`]: ../../../rand_core/block/struct.BlockRng.html
You can’t perform that action at this time.
0 commit comments