@@ -127,17 +127,17 @@ impl TryFrom<&Public> for SubjectPublicKeyInfoOwned {
127127                    } ; 
128128                } 
129129
130-                 #[ cfg( feature = "p192" ) ]  
130+                 #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " p192") ) ]  
131131                read_key ! ( EccCurve :: NistP192 ,  p192:: NistP192 ) ; 
132-                 #[ cfg( feature = "p224" ) ]  
132+                 #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " p224") ) ]  
133133                read_key ! ( EccCurve :: NistP224 ,  p224:: NistP224 ) ; 
134-                 #[ cfg( feature = "p256" ) ]  
134+                 #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " p256") ) ]  
135135                read_key ! ( EccCurve :: NistP256 ,  p256:: NistP256 ) ; 
136-                 #[ cfg( feature = "p384" ) ]  
136+                 #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " p384") ) ]  
137137                read_key ! ( EccCurve :: NistP384 ,  p384:: NistP384 ) ; 
138-                 #[ cfg( feature = "p521" ) ]  
138+                 #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " p521") ) ]  
139139                read_key ! ( EccCurve :: NistP521 ,  p521:: NistP521 ) ; 
140-                 #[ cfg( feature = "sm2" ) ]  
140+                 #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " sm2") ) ]  
141141                read_key ! ( EccCurve :: Sm2P256 ,  sm2:: Sm2 ) ; 
142142
143143                Err ( Error :: local_error ( WrapperErrorKind :: UnsupportedParam ) ) 
@@ -207,32 +207,32 @@ pub trait AssociatedTpmCurve {
207207const  TPM_CURVE :  EccCurve ; 
208208} 
209209
210- #[ cfg( feature = "p192" ) ]  
210+ #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " p192") ) ]  
211211impl  AssociatedTpmCurve  for  p192:: NistP192  { 
212212    const  TPM_CURVE :  EccCurve  = EccCurve :: NistP192 ; 
213213} 
214214
215- #[ cfg( feature = "p224" ) ]  
215+ #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " p224") ) ]  
216216impl  AssociatedTpmCurve  for  p224:: NistP224  { 
217217    const  TPM_CURVE :  EccCurve  = EccCurve :: NistP224 ; 
218218} 
219219
220- #[ cfg( feature = "p256" ) ]  
220+ #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " p256") ) ]  
221221impl  AssociatedTpmCurve  for  p256:: NistP256  { 
222222    const  TPM_CURVE :  EccCurve  = EccCurve :: NistP256 ; 
223223} 
224224
225- #[ cfg( feature = "p384" ) ]  
225+ #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " p384") ) ]  
226226impl  AssociatedTpmCurve  for  p384:: NistP384  { 
227227    const  TPM_CURVE :  EccCurve  = EccCurve :: NistP384 ; 
228228} 
229229
230- #[ cfg( feature = "p521" ) ]  
230+ #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " p521") ) ]  
231231impl  AssociatedTpmCurve  for  p521:: NistP521  { 
232232    const  TPM_CURVE :  EccCurve  = EccCurve :: NistP521 ; 
233233} 
234234
235- #[ cfg( feature = "sm2" ) ]  
235+ #[ cfg( all ( feature = "rustcrypto"  ,  feature =  " sm2") ) ]  
236236impl  AssociatedTpmCurve  for  sm2:: Sm2  { 
237237    const  TPM_CURVE :  EccCurve  = EccCurve :: Sm2P256 ; 
238238} 
0 commit comments