@@ -5,7 +5,7 @@ mod test_quote {
55 use crate :: common:: create_ctx_with_session;
66 use std:: convert:: TryFrom ;
77 use tss_esapi:: {
8- abstraction:: { ak, ek, AsymmetricAlgorithmSelection } ,
8+ abstraction:: { ak, ek, no_tpm , AsymmetricAlgorithmSelection } ,
99 handles:: PcrHandle ,
1010 interface_types:: {
1111 algorithm:: { HashingAlgorithm , SignatureSchemeAlgorithm } ,
@@ -16,7 +16,6 @@ mod test_quote {
1616 Auth , Data , Digest , DigestList , DigestValues , EccSignature , PcrSelectionListBuilder ,
1717 PcrSlot , Signature , SignatureScheme ,
1818 } ,
19- utils,
2019 } ;
2120
2221 fn checkquote_ecc ( hash_alg : HashingAlgorithm ) {
@@ -79,7 +78,7 @@ mod test_quote {
7978 . unwrap ( ) ;
8079
8180 let public = ak_res. out_public ;
82- assert ! ( utils :: checkquote(
81+ assert ! ( no_tpm :: checkquote(
8382 & attest,
8483 & signature,
8584 & public,
@@ -88,10 +87,10 @@ mod test_quote {
8887 )
8988 . unwrap( ) ) ;
9089 // Test without pcrs
91- assert ! ( utils :: checkquote( & attest, & signature, & public, & None , & qualifying_data) . unwrap( ) ) ;
90+ assert ! ( no_tpm :: checkquote( & attest, & signature, & public, & None , & qualifying_data) . unwrap( ) ) ;
9291
9392 let wrong_nonce = vec ! [ 5 , 2 , 3 , 8 , 1 , 4 , 8 ] ;
94- assert ! ( !utils :: checkquote( & attest, & signature, & public, & None , & wrong_nonce) . unwrap( ) ) ;
93+ assert ! ( !no_tpm :: checkquote( & attest, & signature, & public, & None , & wrong_nonce) . unwrap( ) ) ;
9594
9695 let wrong_ak_res = ak:: create_ak (
9796 & mut context,
@@ -103,7 +102,7 @@ mod test_quote {
103102 None ,
104103 )
105104 . unwrap ( ) ;
106- assert ! ( !utils :: checkquote(
105+ assert ! ( !no_tpm :: checkquote(
107106 & attest,
108107 & signature,
109108 & wrong_ak_res. out_public,
@@ -117,7 +116,7 @@ mod test_quote {
117116 . with_selection ( HashingAlgorithm :: Sha256 , & [ PcrSlot :: Slot2 ] )
118117 . build ( )
119118 . expect ( "Failed to create PcrSelectionList" ) ;
120- assert ! ( !utils :: checkquote(
119+ assert ! ( !no_tpm :: checkquote(
121120 & attest,
122121 & signature,
123122 & public,
@@ -131,7 +130,7 @@ mod test_quote {
131130 wrong_pcr_data. add ( pcr_data. value ( ) [ i] . clone ( ) ) . unwrap ( ) ;
132131 }
133132 wrong_pcr_data. add ( pcr_data. value ( ) [ 0 ] . clone ( ) ) . unwrap ( ) ;
134- assert ! ( !utils :: checkquote(
133+ assert ! ( !no_tpm :: checkquote(
135134 & attest,
136135 & signature,
137136 & public,
@@ -152,7 +151,7 @@ mod test_quote {
152151 ecc. signature_r ( ) . clone ( ) ,
153152 )
154153 . unwrap ( ) ;
155- assert ! ( !utils :: checkquote(
154+ assert ! ( !no_tpm :: checkquote(
156155 & attest,
157156 & Signature :: EcDsa ( wrong_signature) ,
158157 & public,
@@ -226,7 +225,7 @@ mod test_quote {
226225 . execute_without_session ( |ctx| ctx. pcr_read ( pcr_selection_list) )
227226 . unwrap ( ) ;
228227
229- assert ! ( utils :: checkquote(
228+ assert ! ( no_tpm :: checkquote(
230229 & attest,
231230 & signature,
232231 & ak_rsa. out_public,
0 commit comments