parameters: (cls, s: bytes)
return_statement: return bytes(key)
docstring: Builds final DES key from the strings generated in sid_to_key
docstring_summary: Builds final DES key from the strings generated in sid_to_key
docstring_tokens: Builds final DES key from the strings generated in sid_to_key
function: def sidbytes_to_key(cls, s: bytes) -> bytes:
          """Builds final DES key from the strings generated in sid_to_key"""
          key = []
          key.append(s[0] >> 1)
          key.append(((s[0] & 0x01) << 6) | (s[1] >> 2))
          key.append(((s[1] & 0x03) << 5) | (s[2] >> 3))
          key.append(((s[2] & 0x07) << 4) | (s[3] >> 4))
          key.append(((s[3] & 0x0F) << 3) | (s[4] >> 5))
          key.append(((s[4] & 0x1F) << 2) | (s[5] >> 6))
          key.append(((s[5] & 0x3F) << 1) | (s[6] >> 7))
          key.append(s[6] & 0x7F)
          for i in range(8):
              key[i] = (key[i] << 1)
              key[i] = cls.odd_parity[key[i]]
          return bytes(key)
function_tokens: def sidbytes_to_key ( cls , s : bytes ) -> bytes : key = [ ] key . append ( s [ 0 ] >> 1 ) key . append ( ( ( s [ 0 ] & 0x01 ) << 6 ) | ( s [ 1 ] >> 2 ) ) key . append ( ( ( s [ 1 ] & 0x03 ) << 5 ) | ( s [ 2 ] >> 3 ) ) key . append ( ( ( s [ 2 ] & 0x07 ) << 4 ) | ( s [ 3 ] >> 4 ) ) key . append ( ( ( s [ 3 ] & 0x0F ) << 3 ) | ( s [ 4 ] >> 5 ) ) key . append ( ( ( s [ 4 ] & 0x1F ) << 2 ) | ( s [ 5 ] >> 6 ) ) key . append ( ( ( s [ 5 ] & 0x3F ) << 1 ) | ( s [ 6 ] >> 7 ) ) key . append ( s [ 6 ] & 0x7F ) for i in range ( 8 ) : key [ i ] = ( key [ i ] << 1 ) key [ i ] = cls . odd_parity [ key [ i ] ] return bytes ( key )