File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,8 @@ mod auxiliary_security_header;
161161pub mod default;
162162mod security_control;
163163
164+ use self :: default:: Unimplemented ;
165+
164166use super :: { FooterMode , Frame , Header } ;
165167use crate :: mac:: { Address , FrameType , FrameVersion } ;
166168use byte:: BytesExt ;
@@ -275,6 +277,18 @@ where
275277 }
276278}
277279
280+ impl SecurityContext < Unimplemented , Unimplemented > {
281+ /// A security context that is not actually capable of providing any security
282+ pub fn no_security ( ) -> Self {
283+ Self {
284+ euid : 0 ,
285+ frame_counter : 0 ,
286+ key_provider : Unimplemented { } ,
287+ phantom_data : PhantomData ,
288+ }
289+ }
290+ }
291+
278292fn calculate_nonce ( source_addr : u64 , frame_counter : u32 , sec_level : SecurityLevel ) -> [ u8 ; 13 ] {
279293 let mut output = [ 0u8 ; 13 ] ;
280294 for i in 0 ..8 {
You can’t perform that action at this time.
0 commit comments