fn from(v: u32) -> Self {
        use self::CipherSuite::*;
        if v & 0x00ff_ffff == 0x00ac_0f00 {
            let c = (v >> 24) as u8;
            match c {
                0 => UseGroupCipherSuite,
                1 => WiredEquivalentPrivacy40,
                2 => TemporalKeyIntegrityProtocol,
                4 => CounterModeCbcMacProtocol,
                5 => WiredEquivalentPrivacy104,
                6 => BroadcastIntegrityProtocol,
                7 => GroupAddressedTrafficNotAllowed,
                _ => Reserved(c),
            }
        } else {
            Vendor(v)
        }
    }
/// Decode 32-bit unsigned integer as a cipher suite value
Decode 32-bit unsigned integer as a cipher suite value
Decode 32 - bit unsigned integer as a cipher suite value
fn from(v: u32) -> Self {
        use self::CipherSuite::*;
        if v & 0x00ff_ffff == 0x00ac_0f00 {
            let c = (v >> 24) as u8;
            match c {
                0 => UseGroupCipherSuite,
                1 => WiredEquivalentPrivacy40,
                2 => TemporalKeyIntegrityProtocol,
                4 => CounterModeCbcMacProtocol,
                5 => WiredEquivalentPrivacy104,
                6 => BroadcastIntegrityProtocol,
                7 => GroupAddressedTrafficNotAllowed,
                _ => Reserved(c),
            }
        } else {
            Vendor(v)
        }
    }
fn from ( v : u32 ) -> Self { use self :: CipherSuite :: * ; if v & 0x00ff_ffff == 0x00ac_0f00 { let c = ( v >> 24 ) as u8 ; match c { 0 => UseGroupCipherSuite , 1 => WiredEquivalentPrivacy40 , 2 => TemporalKeyIntegrityProtocol , 4 => CounterModeCbcMacProtocol , 5 => WiredEquivalentPrivacy104 , 6 => BroadcastIntegrityProtocol , 7 => GroupAddressedTrafficNotAllowed , _ => Reserved ( c ) , } } else { Vendor ( v ) } }
Decode 32-bit unsigned integer as a cipher suite value
Decode 32 - bit unsigned integer as a cipher suite value
v
u32
v
u32