@@ -26,7 +26,7 @@ pub struct Context<K: Kem, F: Kdf, A: Aead> {
2626 /// Raw AEAD key bytes — kept under cfg gate so the test/KAT/differential
2727 /// harnesses can assert on them. Production builds carry only the
2828 /// derived `cipher` state.
29- #[ cfg( any( test, feature = "kat-internals" , feature = "differential" ) ) ]
29+ #[ cfg( any( test, feature = "hazmat- kat-internals" , feature = "hazmat- differential" ) ) ]
3030 raw_key : Zeroizing < Vec < u8 > > ,
3131 _kfa : PhantomData < ( K , F , A ) > ,
3232}
@@ -72,7 +72,7 @@ impl<K: Kem, F: Kdf, A: Aead> Context<K, F, A> {
7272 base_nonce : nonce_arr,
7373 exporter_secret : Zeroizing :: new ( exporter_secret) ,
7474 seq : 0 ,
75- #[ cfg( any( test, feature = "kat-internals" , feature = "differential" ) ) ]
75+ #[ cfg( any( test, feature = "hazmat- kat-internals" , feature = "hazmat- differential" ) ) ]
7676 raw_key : Zeroizing :: new ( key_z. to_vec ( ) ) ,
7777 _kfa : PhantomData ,
7878 } )
@@ -113,7 +113,7 @@ impl<K: Kem, F: Kdf, A: Aead> Context<K, F, A> {
113113 }
114114}
115115
116- #[ cfg( any( test, feature = "kat-internals" , feature = "differential" ) ) ]
116+ #[ cfg( any( test, feature = "hazmat- kat-internals" , feature = "hazmat- differential" ) ) ]
117117impl < K : Kem , F : Kdf , A : Aead > Context < K , F , A > {
118118 /// Test-only: expose the AEAD key.
119119 #[ must_use]
@@ -213,7 +213,7 @@ impl<K: Kem, F: Kdf, A: Aead> SenderContext<K, F, A> {
213213 /// Test/KAT/differential-only: wrap a raw key-schedule [`Context`] as a
214214 /// sender context (the harnesses build contexts from injected shared
215215 /// secrets rather than through `setup_sender_*`).
216- #[ cfg( any( test, feature = "kat-internals" , feature = "differential" ) ) ]
216+ #[ cfg( any( test, feature = "hazmat- kat-internals" , feature = "hazmat- differential" ) ) ]
217217 #[ doc( hidden) ]
218218 #[ must_use]
219219 pub fn from_context ( inner : Context < K , F , A > ) -> Self {
@@ -252,7 +252,7 @@ impl<K: Kem, F: Kdf, A: SealingAead> ReceiverContext<K, F, A> {
252252}
253253
254254/// Test/KAT/differential accessors that delegate to the inner [`Context`].
255- #[ cfg( any( test, feature = "kat-internals" , feature = "differential" ) ) ]
255+ #[ cfg( any( test, feature = "hazmat- kat-internals" , feature = "hazmat- differential" ) ) ]
256256impl < K : Kem , F : Kdf , A : Aead > ReceiverContext < K , F , A > {
257257 /// Test-only: expose the AEAD key.
258258 #[ must_use]
0 commit comments