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 1010#![ warn( missing_docs, unused_qualifications, missing_debug_implementations) ]
1111
1212use core:: fmt:: Debug ;
13- use rand_core:: CryptoRng ;
13+ use rand_core:: TryCryptoRng ;
1414
1515/// A value that can be encapsulated to. Often, this will just be a public key. However, it can
1616/// also be a bundle of public keys, or it can include a sender's private key for authenticated
@@ -20,7 +20,7 @@ pub trait Encapsulate<EK, SS> {
2020 type Error : Debug ;
2121
2222 /// Encapsulates a fresh shared secret
23- fn encapsulate < R : CryptoRng + ?Sized > ( & self , rng : & mut R ) -> Result < ( EK , SS ) , Self :: Error > ;
23+ fn encapsulate < R : TryCryptoRng + ?Sized > ( & self , rng : & mut R ) -> Result < ( EK , SS ) , Self :: Error > ;
2424}
2525
2626/// A value that can be used to decapsulate an encapsulated key.
You can’t perform that action at this time.
0 commit comments