@@ -33,10 +33,11 @@ use std::ptr::null_mut;
3333///
3434/// Code safety-wise, the methods should cover the two kinds of problems that might arise:
3535/// * in terms of memory safety, all parameters passed down to the TSS are verified and the library
36- /// stack is then trusted to provide back valid outputs
36+ /// stack is then trusted to provide back valid outputs
3737/// * in terms of thread safety, all methods require a mutable reference to the context object,
38- /// ensuring that no two threads can use the context at the same time for an operation (barring use
39- /// of `unsafe` constructs on the client side)
38+ /// ensuring that no two threads can use the context at the same time for an operation (barring use
39+ /// of `unsafe` constructs on the client side)
40+ ///
4041/// More testing and verification will be added to ensure this.
4142///
4243/// For most methods, if the wrapped TSS call fails and returns a non-zero `TPM2_RC`, a
@@ -86,7 +87,7 @@ impl Context {
8687 ///
8788 /// # Errors
8889 /// * if either `Tss2_TctiLdr_Initiialize` or `Esys_Initialize` fail, a corresponding
89- /// Tss2ResponseCode will be returned
90+ /// Tss2ResponseCode will be returned
9091 pub fn new ( tcti_name_conf : TctiNameConf ) -> Result < Self > {
9192 let mut esys_context = null_mut ( ) ;
9293
@@ -120,7 +121,7 @@ impl Context {
120121 ///
121122 /// # Errors
122123 /// * if either `Tss2_TctiLdr_Initiialize` or `Esys_Initialize` fail, a corresponding
123- /// Tss2ResponseCode will be returned
124+ /// Tss2ResponseCode will be returned
124125 pub fn new_with_tabrmd ( tabrmd_conf : TabrmdConfig ) -> Result < Self > {
125126 Context :: new ( TctiNameConf :: Tabrmd ( tabrmd_conf) )
126127 }
0 commit comments