def _read_mode_sec(self, size, kind):
if size < <NUM_LIT:3>:<EOL><INDENT>raise ProtocolError(f'<STR_LIT>')<EOL><DEDENT>_clvl = self._read_unpack(<NUM_LIT:1>)<EOL>data = dict(<EOL>kind=kind,<EOL>type=self._read_opt_type(kind),<EOL>length=size,<EOL>level=_CLASSIFICATION_LEVEL.get(_clvl, _clvl),<EOL>)<EOL>if size > <NUM_LIT:3>:<EOL><INDENT>_list = list()<EOL>for counter in range(<NUM_LIT:3>, size):<EOL><INDENT>_flag = self._read_binary(<NUM_LIT:1>)<EOL>if (counter < size - <NUM_LIT:1> and not int(_flag[<NUM_LIT:7>], base=<NUM_LIT:2>))or (counter == size - <NUM_LIT:1> and int(_flag[<NUM_LIT:7>], base=<NUM_LIT:2>)):<EOL><INDENT>raise ProtocolError(f'<STR_LIT>')<EOL><DEDENT>_dict = dict()<EOL>for (index, bit) in enumerate(_flag[:<NUM_LIT:5>]):<EOL><INDENT>_auth = _PROTECTION_AUTHORITY.get(index)<EOL>_dict[_auth] = True if int(bit, base=<NUM_LIT:2>) else False<EOL><DEDENT>_list.append(Info(_dict))<EOL><DEDENT>data['<STR_LIT>'] = tuple(_list)<EOL><DEDENT>return data<EOL>
Read options with security info.

        Positional arguments:
            size - int, length of option
            kind - int, 130 (SEC )/ 133 (ESEC)

        Returns:
            * dict -- extracted option with security info (E/SEC)

        Structure of these options:
            * [RFC 1108] Security (SEC)
                +------------+------------+------------+-------------//----------+
                |  10000010  |  XXXXXXXX  |  SSSSSSSS  |  AAAAAAA[1]    AAAAAAA0 |
                |            |            |            |         [0]             |
                +------------+------------+------------+-------------//----------+
                  TYPE = 130     LENGTH   CLASSIFICATION         PROTECTION
                                               LEVEL              AUTHORITY
                                                                    FLAGS
            * [RFC 1108] Extended Security (ESEC):
                +------------+------------+------------+-------//-------+
                |  10000101  |  000LLLLL  |  AAAAAAAA  |  add sec info  |
                +------------+------------+------------+-------//-------+
                 TYPE = 133      LENGTH     ADDITIONAL      ADDITIONAL
                                           SECURITY INFO     SECURITY
                                            FORMAT CODE        INFO

            Octets      Bits        Name                    Description
              0           0     ip.sec.kind             Kind (130)
              0           0     ip.sec.type.copy        Copied Flag (1)
              0           1     ip.sec.type.class       Option Class (0)
              0           3     ip.sec.type.number      Option Number (2)
              1           8     ip.sec.length           Length (≥3)
              2          16     ip.sec.level            Classification Level
              3          24     ip.sec.flags            Protection Authority Flags