Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Import alias Import alias Import alias ClassDef bases body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Assign NameStore Call NameLoad AttributeLoad NameLoad attr AugAssignAdd AttributeStore NameLoad attr Num Return NameLoad decorator_list decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr TupleLoad Num Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body Expr Str For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad Num body Expr Str TryExcept body While BoolOpAnd CompareLt Call NameLoad AttributeLoad NameLoad attr NameLoad UnaryOpNot AttributeLoad NameLoad attr body TryExcept body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareIn NameLoad TupleLoad Num Num body Expr Yield NameLoad Assign NameStore NameLoad AugAssignAdd AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise ExceptHandler type NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Raise orelse Expr Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad Expr Yield NameLoad handlers ExceptHandler type NameLoad body Raise ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Raise decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore Call AttributeLoad NameLoad attr NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body If AttributeLoad NameLoad attr body Raise Call NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad While Num body Assign NameStore BinOpMult NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad If CompareGtE NameLoad Call NameLoad NameLoad body Break If CompareGt NameLoad Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Yield NameLoad Assign NameStore NameLoad AugAssignAdd NameStore Num handlers ExceptHandler type NameLoad body Raise ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body AugAssignSub AttributeStore NameLoad attr Num If BoolOpAnd CompareEq AttributeLoad NameLoad attr Num UnaryOpNot AttributeLoad NameLoad attr body TryExcept body For NameStore Call AttributeLoad NameLoad attr Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield NameLoad Assign NameStore NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse While UnaryOpNot NameLoad body For NameStore Call AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareIn NameLoad TupleLoad Num Num body Expr Yield NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad NameLoad handlers ExceptHandler type TupleLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad ExceptHandler type NameLoad body Raise ExceptHandler body Expr Call AttributeLoad NameLoad attr NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Expr Str If CompareEq AttributeLoad NameLoad attr TupleLoad Num Num body Return Str orelse If CompareEq AttributeLoad NameLoad attr TupleLoad Num Num body Return Str orelse If CompareEq AttributeLoad NameLoad attr TupleLoad Num Num body Return Str orelse Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Return AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr body Return NameLoad Return AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Num body Expr Str AugAssignAdd AttributeStore NameLoad attr Num Return Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr TupleLoad Num Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr If BoolOpAnd UnaryOpNot NameLoad AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore NameLoad For NameStore NameLoad body For NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad body Expr Yield NameLoad Assign NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body If BoolOpAnd UnaryOpNot AttributeLoad NameLoad attr NameLoad CompareLtE AttributeLoad NameLoad attr TupleLoad Num Num AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad body Expr Yield NameLoad Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Return Assign NameStore AttributeLoad NameLoad attr If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpFloorDiv Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Call NameLoad NameLoad Num orelse If CompareIn AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpFloorDiv Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Call NameLoad NameLoad Num orelse Raise Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Num BinOpMod BinOpAdd SubscriptLoad NameLoad Index Num Num Num If AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body If CompareEq AttributeLoad NameLoad attr TupleLoad Num Num body Assign NameStore BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd BinOpAdd Call NameLoad NameLoad Call NameLoad NameLoad Num Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore BinOpSub NameLoad BinOpMod NameLoad NameLoad Assign NameStore Call NameLoad BinOpMult ListLoad NameLoad BinOpAdd NameLoad Num If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign SubscriptStore NameLoad Index Num BinOpMod BinOpAdd SubscriptLoad NameLoad Index Num Num Num Assign NameStore BinOpAdd NameLoad NameLoad AugAssignAdd NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call NameLoad NameLoad orelse AugAssignAdd NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad Call NameLoad attr AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad Assign NameStore Call NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad While Num body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Expr Yield Num Continue orelse If CompareEq NameLoad AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad TupleLoad Num Num body Expr Yield NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad Raise Call NameLoad NameLoad orelse Raise If CompareEq NameLoad Call NameLoad NameLoad body Return Assign NameStore SubscriptLoad NameLoad Slice NameLoad Expr Yield Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body TryExcept body If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad While Num body For NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad TupleLoad Num Num body Expr Yield NameLoad Assign TupleStore NameStore NameStore NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If CompareEq AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr body Continue If CompareNotIn AttributeLoad NameLoad attr NameLoad body If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call NameLoad attr NameLoad If BoolOpOr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Pass If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Raise Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Num Assign NameStore NameLoad If AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore NameLoad If NameLoad body Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr NameLoad body Expr Yield NameLoad Continue For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr body Expr Yield NameLoad Break If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad attr NameLoad orelse If CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign NameStore TupleLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Num If CompareNotEq NameLoad AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Yield NameLoad If CompareNotIn AttributeLoad NameLoad attr NameLoad body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield NameLoad Assign NameStore AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr Num If CompareNotIn NameLoad NameLoad body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr BinOpMod Str TupleLoad Call NameLoad NameLoad NameLoad body Expr Yield NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad NameLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Yield Call AttributeLoad Call NameLoad attr NameLoad orelse Raise Call NameLoad handlers ExceptHandler type NameLoad name NameStore body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad body Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Expr Yield TupleLoad NameLoad Call NameLoad NameLoad Return Assign NameStore Call NameLoad ListLoad Assign NameStore Num Assign NameStore NameLoad While Num body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub NameLoad Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Expr Yield Num Continue orelse Raise If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad AugAssignAdd NameStore Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body If CompareIn SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Assign NameStore NameLoad Assign NameStore Num orelse If CompareEq SubscriptLoad NameLoad Index Num Num body Assign NameStore NameLoad Assign NameStore Num orelse Raise Call NameLoad If CompareEq Call NameLoad NameLoad NameLoad body Break If NameLoad body Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad Call NameLoad attr Call NameLoad NameLoad If CompareGt AttributeLoad NameLoad attr Num body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield NameLoad Assign NameStore Call NameLoad ListLoad While Num body TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr BinOpSub AttributeLoad NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr body Expr Yield Num Continue orelse Raise If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad AugAssignAdd NameStore Call NameLoad NameLoad If CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr body Break For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad body If CompareIn NameLoad TupleLoad Num Num body Expr Yield NameLoad orelse Break Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Yield TupleLoad NameLoad NameLoad orelse If AttributeLoad NameLoad attr body Expr Yield TupleLoad NameLoad NameLoad orelse While Num body If CompareEq AttributeLoad NameLoad attr Call NameLoad NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Yield NameLoad Break If CompareGt BinOpAdd AttributeLoad NameLoad attr Num Call NameLoad NameLoad body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Yield NameLoad Expr Call AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr Num If CompareGt BinOpAdd AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Yield NameLoad Assign NameStore TupleLoad NameLoad SubscriptLoad NameLoad Slice BinOpSub AttributeLoad NameLoad attr Num BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr NameLoad Assign TupleStore NameStore NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num Expr Yield TupleLoad NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If AttributeLoad AttributeLoad NameLoad attr attr body If AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr If CompareNotEq BinOpMod Call NameLoad NameLoad NameLoad Num body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Yield NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad If CompareEq AttributeLoad NameLoad attr TupleLoad Num Num body Assign NameStore SubscriptLoad NameLoad Slice AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad NameLoad Assign NameStore NameLoad Assign NameStore SubscriptLoad NameLoad Index Num If CompareGt BinOpAdd NameLoad Num Call NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Num orelse If CompareEq AttributeLoad NameLoad attr TupleLoad Num Num body Assign NameStore BinOpAdd NameLoad Num orelse If CompareIn AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num body Assign NameStore BinOpAdd NameLoad Num Assign NameStore SubscriptLoad NameLoad Slice UnaryOpUSub NameLoad Num For NameStore NameLoad body If CompareNotEq NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Num orelse Raise Call NameLoad orelse Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore NameLoad Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore BinOpAdd NameLoad NameLoad If CompareGt NameLoad Call NameLoad NameLoad body Assign NameStore NameLoad orelse Assign NameStore BinOpSub Call NameLoad NameLoad NameLoad Assign NameStore BinOpAdd NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore SubscriptLoad NameLoad Slice UnaryOpUSub NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpFloorDiv Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Call NameLoad NameLoad Num orelse If CompareIn AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpFloorDiv Call NameLoad NameLoad Num Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Call NameLoad NameLoad Num orelse Raise Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Assign NameStore NameLoad If UnaryOpNot BoolOpAnd NameLoad NameLoad body For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str body Expr Yield NameLoad Expr Yield NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If UnaryOpNot AttributeLoad NameLoad attr body Raise Call NameLoad Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad orelse If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad orelse Raise Call NameLoad If CompareEq AttributeLoad NameLoad attr TupleLoad Num Num body Assign NameStore NameLoad orelse If CompareIn AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num body Assign NameStore NameLoad Assign NameStore BinOpAdd BinOpAdd BinOpMult NameLoad Num BinOpMult NameLoad Num BinOpMult NameLoad Num If CompareEq AttributeLoad NameLoad attr TupleLoad Num Num body Assign NameStore Call NameLoad NameLoad BinOpAdd NameLoad NameLoad NameLoad orelse If CompareIn AttributeLoad NameLoad attr TupleLoad TupleLoad Num Num TupleLoad Num Num body Assign NameStore Call NameLoad NameLoad Str BinOpAdd NameLoad NameLoad NameLoad orelse Raise Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad NameLoad NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If BoolOpAnd CompareEq AttributeLoad NameLoad attr TupleLoad Num Num NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad NameLoad BinOpMult Str Num Expr Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad NameLoad BinOpMult Str Num Assign NameStore Call AttributeLoad Call NameLoad BinOpAdd BinOpAdd NameLoad BinOpMult Str Num Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad Call NameLoad BinOpAdd BinOpAdd NameLoad BinOpMult Str Num Call AttributeLoad NameLoad attr attr Return Call NameLoad BinOpAdd NameLoad NameLoad decorator_list decorator_list
N/A N/A Helper class for TLSConnection. __future__ generators utils.compat * utils.cryptomath * utils.cipherfactory createAES createRC4 createTripleDES utils.codec * errors * messages * mathtls * constants * utils.cryptomath getRandomBytes N/A socket N/A errno N/A traceback _ConnectionState N/A N/A __init__ N/A N/A self N/A N/A N/A N/A self macContext None N/A N/A self encContext None N/A N/A self seqnum 0 N/A getSeqNumStr N/A N/A self N/A N/A N/A w N/A Writer N/A N/A N/A w add N/A self seqnum 8 N/A seqnumStr N/A bytesToString N/A w bytes N/A N/A self seqnum 1 N/A seqnumStr N/A N/A TLSRecordLayer N/A N/A N/A 
    This class handles data transmission for a TLS connection.

    Its only subclass is L{tlslite.TLSConnection.TLSConnection}.  We've
    separated the code in this class from TLSConnection to make things
    more readable.


    @type sock: socket.socket
    @ivar sock: The underlying socket object.

    @type session: L{tlslite.Session.Session}
    @ivar session: The session corresponding to this connection.

    Due to TLS session resumption, multiple connections can correspond
    to the same underlying session.

    @type version: tuple
    @ivar version: The TLS version being used for this connection.

    (3,0) means SSL 3.0, and (3,1) means TLS 1.0.

    @type closed: bool
    @ivar closed: If this connection is closed.

    @type resumed: bool
    @ivar resumed: If this connection is based on a resumed session.

    @type allegedSrpUsername: str or None
    @ivar allegedSrpUsername:  This is set to the SRP username
    asserted by the client, whether the handshake succeeded or not.
    If the handshake fails, this can be inspected to determine
    if a guessing attack is in progress against a particular user
    account.

    @type closeSocket: bool
    @ivar closeSocket: If the socket should be closed when the
    connection is closed, defaults to True (writable).

    If you set this to True, TLS Lite will assume the responsibility of
    closing the socket when the TLS Connection is shutdown (either
    through an error or through the user calling close()).  The default
    is False.

    @type ignoreAbruptClose: bool
    @ivar ignoreAbruptClose: If an abrupt close of the socket should
    raise an error (writable).

    If you set this to True, TLS Lite will not raise a
    L{tlslite.errors.TLSAbruptCloseError} exception if the underlying
    socket is unexpectedly closed.  Such an unexpected closure could be
    caused by an attacker.  However, it also occurs with some incorrect
    TLS implementations.

    You should set this to True only if you're not worried about an
    attacker truncating the connection, and only if necessary to avoid
    spurious errors.  The default is False.

    @sort: __init__, read, readAsync, write, writeAsync, close, closeAsync,
    getCipherImplementation, getCipherName
     __init__ N/A N/A self sock N/A N/A N/A N/A self sock sock N/A N/A self session None N/A N/A self _client None N/A N/A self _handshakeBuffer N/A N/A N/A self _readBuffer N/A N/A self _handshake_md5 N/A md5 N/A N/A self _handshake_sha N/A sha1 N/A N/A self version N/A 0 0 N/A N/A self _versionCheck False N/A N/A self _writeState N/A _ConnectionState N/A N/A self _readState N/A _ConnectionState N/A N/A self _pendingWriteState N/A _ConnectionState N/A N/A self _pendingReadState N/A _ConnectionState N/A N/A self closed True N/A N/A self _refCount 0 N/A N/A self resumed False N/A N/A self allegedSrpUsername None N/A N/A self closeSocket True N/A N/A self ignoreAbruptClose False N/A N/A self fault None N/A read N/A N/A self max min N/A None 1 N/A N/A Read some data from the TLS connection.

        This function will block until at least 'min' bytes are
        available (or the connection is closed).

        If an exception is raised, the connection will have been
        automatically closed.

        @type max: int
        @param max: The maximum number of bytes to return.

        @type min: int
        @param min: The minimum number of bytes to return

        @rtype: str
        @return: A string of no more than 'max' bytes, and no fewer
        than 'min' (unless the connection has been closed, in which
        case fewer than 'min' bytes may be returned).

        @raise socket.error: If a socket error occurs.
        @raise tlslite.errors.TLSAbruptCloseError: If the socket is closed
        without a preceding alert.
        @raise tlslite.errors.TLSAlert: If a TLS alert is signalled.
         N/A result N/A N/A self readAsync max min N/A N/A N/A result N/A readAsync N/A N/A self max min N/A None 1 N/A N/A Start a read operation on the TLS connection.

        This function returns a generator which behaves similarly to
        read().  Successive invocations of the generator will return 0
        if it is waiting to read from the socket, 1 if it is waiting
        to write to the socket, or a string if the read operation has
        completed.

        @rtype: iterable
        @return: A generator; see above for details.
         N/A N/A N/A N/A N/A N/A len N/A self _readBuffer min N/A N/A self closed N/A N/A N/A N/A result N/A N/A self _getMsg N/A ContentType application_data N/A N/A N/A result N/A 0 1 N/A N/A N/A result N/A applicationData result N/A N/A self _readBuffer N/A bytesToString N/A N/A applicationData write N/A N/A N/A TLSRemoteAlert N/A alert N/A N/A N/A N/A alert description N/A AlertDescription close_notify N/A N/A N/A N/A TLSAbruptCloseError N/A N/A N/A N/A self ignoreAbruptClose N/A N/A N/A N/A N/A N/A self _shutdown True N/A N/A max None N/A N/A max N/A len N/A self _readBuffer N/A returnStr N/A N/A self _readBuffer N/A max N/A N/A self _readBuffer N/A N/A self _readBuffer N/A max N/A N/A returnStr N/A N/A N/A GeneratorExit N/A N/A N/A N/A N/A N/A N/A self _shutdown False N/A N/A write N/A N/A self s N/A N/A N/A Write some data to the TLS connection.

        This function will block until all the data has been sent.

        If an exception is raised, the connection will have been
        automatically closed.

        @type s: str
        @param s: The data to transmit to the other party.

        @raise socket.error: If a socket error occurs.
         N/A result N/A N/A self writeAsync s N/A N/A N/A writeAsync N/A N/A self s N/A N/A N/A Start a write operation on the TLS connection.

        This function returns a generator which behaves similarly to
        write().  Successive invocations of the generator will return
        1 if it is waiting to write to the socket, or will raise
        StopIteration if the write operation has completed.

        @rtype: iterable
        @return: A generator; see above for details.
         N/A N/A N/A N/A self closed N/A N/A N/A ValueError N/A index 0 N/A blockSize 16384 N/A randomizeFirstBlock True N/A 1 N/A N/A startIndex N/A index blockSize N/A endIndex N/A startIndex blockSize N/A N/A startIndex N/A len s N/A N/A N/A N/A endIndex N/A len s N/A N/A endIndex N/A len s N/A block N/A stringToBytes N/A s N/A startIndex endIndex N/A applicationData N/A N/A N/A ApplicationData create block N/A result N/A N/A self _sendMsg applicationData randomizeFirstBlock N/A N/A N/A result N/A randomizeFirstBlock False N/A index 1 N/A N/A N/A GeneratorExit N/A N/A N/A N/A N/A N/A N/A self _shutdown False N/A N/A close N/A N/A self N/A N/A N/A Close the TLS connection.

        This function will block until it has exchanged close_notify
        alerts with the other party.  After doing so, it will shut down the
        TLS connection.  Further attempts to read through this connection
        will return "".  Further attempts to write through this connection
        will raise ValueError.

        If makefile() has been called on this connection, the connection
        will be not be closed until the connection object and all file
        objects have been closed.

        Even if an exception is raised, the connection will have been
        closed.

        @raise socket.error: If a socket error occurs.
        @raise tlslite.errors.TLSAbruptCloseError: If the socket is closed
        without a preceding alert.
        @raise tlslite.errors.TLSAlert: If a TLS alert is signalled.
         N/A N/A N/A self closed N/A N/A result N/A N/A self _decrefAsync N/A N/A N/A closeAsync N/A N/A self N/A N/A N/A Start a close operation on the TLS connection.

        This function returns a generator which behaves similarly to
        close().  Successive invocations of the generator will return 0
        if it is waiting to read from the socket, 1 if it is waiting
        to write to the socket, or will raise StopIteration if the
        close operation has completed.

        @rtype: iterable
        @return: A generator; see above for details.
         N/A N/A N/A self closed N/A N/A result N/A N/A self _decrefAsync N/A N/A N/A result N/A _decrefAsync N/A N/A self N/A N/A N/A N/A self _refCount 1 N/A N/A N/A N/A self _refCount 0 N/A N/A self closed N/A N/A N/A N/A result N/A N/A self _sendMsg N/A N/A N/A Alert create N/A AlertDescription close_notify N/A AlertLevel warning N/A N/A N/A result N/A alert None N/A N/A self closeSocket N/A N/A N/A N/A self _shutdown True N/A N/A N/A alert N/A N/A result N/A N/A self _getMsg N/A N/A ContentType alert N/A ContentType application_data N/A N/A N/A result N/A 0 1 N/A N/A N/A result N/A N/A N/A result contentType N/A ContentType alert N/A N/A alert result N/A N/A N/A alert description N/A AlertDescription close_notify N/A N/A N/A N/A self _shutdown True N/A N/A N/A TLSRemoteAlert alert N/A N/A N/A N/A N/A socket error TLSAbruptCloseError N/A N/A N/A N/A self _shutdown True N/A N/A GeneratorExit N/A N/A N/A N/A N/A N/A N/A self _shutdown False N/A N/A getVersionName N/A N/A self N/A N/A N/A Get the name of this TLS version.

        @rtype: str
        @return: The name of the TLS version used with this connection.
        Either None, 'SSL 3.0', 'TLS 1.0', or 'TLS 1.1'.
         N/A N/A N/A self version N/A 3 0 N/A N/A SSL 3.0 N/A N/A N/A N/A self version N/A 3 1 N/A N/A TLS 1.0 N/A N/A N/A N/A self version N/A 3 2 N/A N/A TLS 1.1 N/A N/A None N/A getCipherName N/A N/A self N/A N/A N/A Get the name of the cipher used with this connection.

        @rtype: str
        @return: The name of the cipher used with this connection.
        Either 'aes128', 'aes256', 'rc4', or '3des'.
         N/A N/A N/A N/A self _writeState encContext N/A N/A None N/A N/A N/A N/A self _writeState encContext name N/A getCipherImplementation N/A N/A self N/A N/A N/A Get the name of the cipher implementation used with
        this connection.

        @rtype: str
        @return: The name of the cipher implementation used with
        this connection.  Either 'python', 'openssl', or 'pycrypto'.
         N/A N/A N/A N/A self _writeState encContext N/A N/A None N/A N/A N/A N/A self _writeState encContext implementation N/A send N/A N/A self s N/A N/A N/A Send data to the TLS connection (socket emulation).

        @raise socket.error: If a socket error occurs.
         N/A N/A N/A self write s N/A N/A len s N/A sendall N/A N/A self s N/A N/A N/A Send data to the TLS connection (socket emulation).

        @raise socket.error: If a socket error occurs.
         N/A N/A N/A self write s N/A recv N/A N/A self bufsize N/A N/A N/A Get some data from the TLS connection (socket emulation).

        @raise socket.error: If a socket error occurs.
        @raise tlslite.errors.TLSAbruptCloseError: If the socket is closed
        without a preceding alert.
        @raise tlslite.errors.TLSAlert: If a TLS alert is signalled.
         N/A N/A N/A self read bufsize N/A makefile N/A N/A self mode bufsize N/A r -1 N/A N/A Create a file object for the TLS connection (socket emulation).

        @rtype: L{socket._fileobject}
         N/A N/A self _refCount 1 N/A N/A N/A socket _fileobject self mode bufsize close True N/A getsockname N/A N/A self N/A N/A N/A Return the socket's own address (socket emulation). N/A N/A N/A N/A self sock getsockname N/A getpeername N/A N/A self N/A N/A N/A Return the remote address to which the socket is connected
        (socket emulation). N/A N/A N/A N/A self sock getpeername N/A settimeout N/A N/A self value N/A N/A N/A Set a timeout on blocking socket operations (socket emulation). N/A N/A N/A N/A self sock settimeout value N/A gettimeout N/A N/A self N/A N/A N/A Return the timeout associated with socket operations (socket
        emulation). N/A N/A N/A N/A self sock gettimeout N/A setsockopt N/A N/A self level optname value N/A N/A N/A Set the value of the given socket option (socket emulation). N/A N/A N/A N/A self sock setsockopt level optname value N/A shutdown N/A N/A self how N/A N/A N/A Shutdown the underlying socket. N/A N/A N/A N/A self sock shutdown how N/A fileno N/A N/A self N/A N/A N/A Not implement in TLS Lite. N/A N/A NotImplementedError N/A _shutdown N/A N/A self resumable N/A N/A N/A N/A self _writeState N/A _ConnectionState N/A N/A self _readState N/A _ConnectionState N/A N/A self version N/A 0 0 N/A N/A self _versionCheck False N/A N/A self closed True N/A N/A self closeSocket N/A N/A N/A N/A N/A self sock close N/A N/A N/A resumable N/A self session N/A N/A N/A N/A self session resumable False N/A _sendError N/A N/A self alertDescription errorStr N/A None N/A N/A alert N/A N/A N/A Alert create alertDescription N/A AlertLevel fatal N/A result N/A N/A self _sendMsg alert N/A N/A N/A result N/A N/A N/A self _shutdown False N/A N/A TLSLocalAlert alert errorStr N/A _sendMsgs N/A N/A self msgs N/A N/A N/A randomizeFirstBlock True N/A msg msgs N/A N/A result N/A N/A self _sendMsg msg randomizeFirstBlock N/A N/A N/A result N/A randomizeFirstBlock True N/A _sendMsg N/A N/A self msg randomizeFirstBlock N/A True N/A N/A N/A N/A N/A self closed randomizeFirstBlock N/A N/A self version N/A 3 1 N/A N/A self _writeState encContext N/A N/A N/A self _writeState encContext isBlockCipher N/A isinstance msg ApplicationData N/A N/A msgFirstByte N/A N/A msg splitFirstByte N/A result N/A N/A self _sendMsg msgFirstByte randomizeFirstBlock False N/A N/A N/A result N/A bytes N/A N/A msg write N/A N/A N/A len bytes 0 N/A N/A N/A contentType N/A msg contentType N/A N/A contentType N/A ContentType handshake N/A N/A bytesStr N/A bytesToString bytes N/A N/A N/A N/A self _handshake_md5 update bytesStr N/A N/A N/A N/A self _handshake_sha update bytesStr N/A N/A N/A self _writeState macContext N/A N/A seqnumStr N/A N/A N/A self _writeState getSeqNumStr N/A bytesStr N/A bytesToString bytes N/A mac N/A N/A N/A N/A self _writeState macContext copy N/A N/A N/A mac update seqnumStr N/A N/A N/A mac update N/A chr contentType N/A N/A N/A self version N/A 3 0 N/A N/A N/A N/A mac update N/A chr N/A N/A len bytes 256 N/A N/A N/A mac update N/A chr N/A N/A len bytes 256 N/A N/A N/A N/A self version N/A N/A 3 1 N/A 3 2 N/A N/A N/A N/A mac update N/A chr N/A N/A self version N/A 0 N/A N/A N/A mac update N/A chr N/A N/A self version N/A 1 N/A N/A N/A mac update N/A chr N/A N/A len bytes 256 N/A N/A N/A mac update N/A chr N/A N/A len bytes 256 N/A N/A N/A AssertionError N/A N/A N/A mac update bytesStr N/A macString N/A N/A mac digest N/A macBytes N/A stringToBytes macString N/A N/A N/A self fault N/A Fault badMAC N/A N/A N/A macBytes N/A 0 N/A N/A N/A macBytes N/A 0 1 256 N/A N/A N/A self _writeState encContext N/A N/A N/A N/A N/A self _writeState encContext isBlockCipher N/A N/A N/A N/A self version N/A 3 2 N/A N/A bytes N/A N/A self fixedIVBlock bytes N/A currentLength N/A N/A N/A len bytes N/A len macBytes 1 N/A blockLength N/A N/A N/A self _writeState encContext block_size N/A paddingLength N/A blockLength N/A currentLength blockLength N/A paddingBytes N/A createByteArraySequence N/A N/A paddingLength N/A paddingLength 1 N/A N/A N/A self fault N/A Fault badPadding N/A N/A N/A paddingBytes N/A 0 N/A N/A N/A paddingBytes N/A 0 1 256 N/A endBytes N/A macBytes paddingBytes N/A bytes endBytes N/A plaintext N/A stringToBytes bytes N/A ciphertext N/A N/A N/A N/A self _writeState encContext encrypt plaintext N/A bytes N/A stringToBytes ciphertext N/A N/A bytes macBytes N/A plaintext N/A bytesToString bytes N/A ciphertext N/A N/A N/A N/A self _writeState encContext encrypt plaintext N/A bytes N/A stringToBytes ciphertext N/A r N/A N/A N/A RecordHeader3 create N/A self version contentType N/A len bytes N/A s N/A bytesToString N/A N/A N/A r write bytes N/A 1 N/A N/A N/A N/A bytesSent N/A N/A N/A self sock send s N/A N/A N/A N/A socket error N/A why N/A N/A N/A N/A why N/A 0 N/A errno EWOULDBLOCK N/A N/A N/A 1 N/A N/A N/A N/A contentType N/A ContentType handshake N/A N/A result N/A N/A self _getNextRecord N/A N/A N/A result N/A 0 1 N/A N/A N/A result N/A N/A N/A self _shutdown False N/A N/A recordHeader p result N/A N/A N/A recordHeader type N/A ContentType alert N/A N/A alert N/A N/A N/A Alert parse p N/A N/A TLSRemoteAlert alert N/A N/A N/A N/A bytesSent N/A len s N/A N/A N/A s N/A s N/A bytesSent N/A N/A 1 N/A _getMsg N/A N/A self expectedType secondaryType constructorType N/A None None N/A N/A N/A N/A N/A N/A isinstance expectedType tuple N/A N/A expectedType N/A expectedType N/A 1 N/A N/A result N/A N/A self _getNextRecord N/A N/A N/A result N/A 0 1 N/A N/A N/A result N/A N/A recordHeader p result N/A N/A N/A recordHeader type N/A ContentType application_data N/A N/A N/A N/A p index N/A len N/A p bytes N/A N/A N/A N/A N/A recordHeader type expectedType N/A N/A N/A N/A recordHeader type N/A ContentType alert N/A N/A alert N/A N/A N/A Alert parse p N/A N/A N/A N/A alert level N/A AlertLevel warning N/A N/A alert description N/A AlertDescription close_notify N/A N/A N/A N/A alertMsg N/A Alert N/A N/A N/A alertMsg create N/A AlertDescription close_notify N/A AlertLevel warning N/A result N/A N/A self _sendMsg alertMsg N/A N/A N/A result N/A N/A N/A N/A socket error N/A N/A N/A N/A N/A alert description N/A AlertDescription close_notify N/A N/A N/A N/A self _shutdown True N/A N/A N/A N/A alert level N/A AlertLevel warning N/A N/A N/A N/A self _shutdown False N/A N/A N/A N/A self _shutdown False N/A N/A TLSRemoteAlert alert N/A N/A N/A recordHeader type N/A ContentType handshake N/A N/A subType N/A N/A p get 1 N/A reneg False N/A N/A self _client N/A N/A N/A subType N/A HandshakeType hello_request N/A N/A reneg True N/A N/A N/A subType N/A HandshakeType client_hello N/A N/A reneg True N/A reneg N/A N/A alertMsg N/A Alert N/A N/A N/A alertMsg create N/A AlertDescription no_renegotiation N/A AlertLevel warning N/A result N/A N/A self _sendMsg alertMsg N/A N/A N/A result N/A N/A result N/A N/A self _sendError N/A AlertDescription unexpected_message N/A received type=%d N/A recordHeader type N/A N/A N/A result N/A N/A N/A N/A recordHeader type N/A ContentType change_cipher_spec N/A N/A N/A N/A N/A N/A ChangeCipherSpec parse p N/A N/A N/A N/A recordHeader type N/A ContentType alert N/A N/A N/A N/A N/A N/A Alert parse p N/A N/A N/A N/A recordHeader type N/A ContentType application_data N/A N/A N/A N/A N/A N/A ApplicationData parse p N/A N/A N/A N/A recordHeader type N/A ContentType handshake N/A N/A N/A N/A isinstance secondaryType tuple N/A N/A secondaryType N/A secondaryType N/A N/A recordHeader ssl2 N/A N/A subType N/A N/A p get 1 N/A N/A subType N/A HandshakeType client_hello N/A N/A result N/A N/A self _sendError N/A AlertDescription unexpected_message Can only handle SSLv2 ClientHello messages N/A N/A N/A result N/A N/A N/A HandshakeType client_hello secondaryType N/A N/A result N/A N/A self _sendError N/A AlertDescription unexpected_message N/A N/A N/A result N/A subType N/A HandshakeType client_hello N/A N/A subType N/A N/A p get 1 N/A N/A subType secondaryType N/A N/A result N/A N/A self _sendError N/A AlertDescription unexpected_message N/A Expecting %s, got %s N/A N/A str secondaryType subType N/A N/A N/A result N/A sToHash N/A bytesToString N/A p bytes N/A N/A N/A N/A self _handshake_md5 update sToHash N/A N/A N/A N/A self _handshake_sha update sToHash N/A N/A subType N/A HandshakeType client_hello N/A N/A N/A N/A N/A N/A ClientHello N/A recordHeader ssl2 parse p N/A N/A N/A subType N/A HandshakeType server_hello N/A N/A N/A N/A N/A N/A ServerHello parse p N/A N/A N/A subType N/A HandshakeType certificate N/A N/A N/A N/A N/A N/A Certificate constructorType parse p N/A N/A N/A subType N/A HandshakeType certificate_request N/A N/A N/A N/A N/A N/A CertificateRequest parse p N/A N/A N/A subType N/A HandshakeType certificate_verify N/A N/A N/A N/A N/A N/A CertificateVerify parse p N/A N/A N/A subType N/A HandshakeType server_key_exchange N/A N/A N/A N/A N/A N/A ServerKeyExchange constructorType parse p N/A N/A N/A subType N/A HandshakeType server_hello_done N/A N/A N/A N/A N/A N/A ServerHelloDone parse p N/A N/A N/A subType N/A HandshakeType client_key_exchange N/A N/A N/A N/A N/A N/A ClientKeyExchange constructorType N/A self version parse p N/A N/A N/A subType N/A HandshakeType finished N/A N/A N/A N/A N/A N/A Finished N/A self version parse p N/A N/A N/A subType N/A HandshakeType next_protocol N/A N/A N/A N/A N/A N/A NextProtocol parse p N/A N/A N/A AssertionError N/A N/A N/A SyntaxError N/A e N/A N/A result N/A N/A self _sendError N/A AlertDescription decode_error N/A formatExceptionTrace e N/A N/A N/A result N/A _getNextRecord N/A N/A self N/A N/A N/A N/A self _handshakeBuffer N/A N/A N/A recordHeader bytes N/A N/A self _handshakeBuffer N/A 0 N/A N/A self _handshakeBuffer N/A N/A self _handshakeBuffer N/A 1 N/A N/A N/A recordHeader N/A Parser bytes N/A N/A bytes N/A createByteArraySequence N/A N/A recordHeaderLength 1 N/A ssl2 False N/A 1 N/A N/A N/A N/A s N/A N/A N/A self sock recv N/A recordHeaderLength N/A len bytes N/A N/A N/A N/A socket error N/A why N/A N/A N/A N/A why N/A 0 N/A errno EWOULDBLOCK N/A N/A N/A 0 N/A N/A N/A N/A N/A N/A len s 0 N/A N/A N/A TLSAbruptCloseError N/A bytes N/A stringToBytes s N/A N/A N/A len bytes 1 N/A N/A N/A N/A bytes N/A 0 N/A ContentType all N/A N/A ssl2 False N/A recordHeaderLength 5 N/A N/A N/A N/A bytes N/A 0 128 N/A N/A ssl2 True N/A recordHeaderLength 2 N/A N/A N/A SyntaxError N/A N/A N/A len bytes recordHeaderLength N/A N/A N/A ssl2 N/A N/A r N/A N/A N/A RecordHeader2 parse N/A Parser bytes N/A N/A r N/A N/A N/A RecordHeader3 parse N/A Parser bytes N/A N/A N/A r length 18432 N/A N/A result N/A N/A self _sendError N/A AlertDescription record_overflow N/A N/A N/A result N/A bytes N/A createByteArraySequence N/A N/A 1 N/A N/A N/A N/A s N/A N/A N/A self sock recv N/A N/A r length N/A len bytes N/A N/A N/A N/A socket error N/A why N/A N/A N/A N/A why N/A 0 N/A errno EWOULDBLOCK N/A N/A N/A 0 N/A N/A N/A N/A N/A N/A len s 0 N/A N/A N/A TLSAbruptCloseError N/A bytes N/A stringToBytes s N/A N/A N/A len bytes N/A r length N/A N/A N/A result N/A N/A self _decryptRecord N/A r type bytes N/A N/A N/A result N/A 0 1 N/A N/A N/A result N/A N/A N/A bytes result N/A p N/A Parser bytes N/A N/A N/A r type N/A ContentType handshake N/A N/A N/A N/A r p N/A N/A N/A r ssl2 N/A N/A N/A N/A r p N/A N/A 1 N/A N/A N/A N/A p index N/A len bytes N/A N/A N/A N/A self _handshakeBuffer N/A N/A result N/A N/A self _sendError N/A AlertDescription decode_error Received empty handshake record N/A N/A N/A result N/A N/A N/A N/A N/A p index 4 N/A len bytes N/A N/A result N/A N/A self _sendError N/A AlertDescription decode_error A record has a partial handshake message (1) N/A N/A N/A result N/A N/A N/A p get 1 N/A msgLength N/A N/A p get 3 N/A N/A N/A N/A p index msgLength N/A len bytes N/A N/A result N/A N/A self _sendError N/A AlertDescription decode_error A record has a partial handshake message (2) N/A N/A N/A result N/A handshakePair N/A r N/A bytes N/A N/A N/A p index 4 N/A N/A p index msgLength N/A N/A N/A N/A self _handshakeBuffer append handshakePair N/A N/A p index msgLength N/A N/A recordHeader bytes N/A N/A self _handshakeBuffer N/A 0 N/A N/A self _handshakeBuffer N/A N/A self _handshakeBuffer N/A 1 N/A N/A N/A recordHeader N/A Parser bytes N/A _decryptRecord N/A N/A self recordType bytes N/A N/A N/A N/A N/A self _readState encContext N/A N/A N/A N/A N/A self _readState encContext isBlockCipher N/A N/A blockLength N/A N/A N/A self _readState encContext block_size N/A N/A N/A N/A len bytes blockLength 0 N/A N/A result N/A N/A self _sendError N/A AlertDescription decryption_failed Encrypted data not a multiple of blocksize N/A N/A N/A result N/A ciphertext N/A bytesToString bytes N/A plaintext N/A N/A N/A N/A self _readState encContext decrypt ciphertext N/A N/A N/A self version N/A 3 2 N/A N/A plaintext N/A plaintext N/A N/A N/A N/A self _readState encContext block_size N/A bytes N/A stringToBytes plaintext N/A paddingGood True N/A paddingLength N/A bytes N/A -1 N/A N/A N/A paddingLength 1 N/A len bytes N/A N/A paddingGood False N/A totalPaddingLength 0 N/A N/A N/A N/A self version N/A 3 0 N/A N/A totalPaddingLength N/A paddingLength 1 N/A N/A N/A N/A self version N/A N/A 3 1 N/A 3 2 N/A N/A totalPaddingLength N/A paddingLength 1 N/A paddingBytes N/A bytes N/A N/A totalPaddingLength -1 N/A byte paddingBytes N/A N/A N/A byte paddingLength N/A N/A paddingGood False N/A totalPaddingLength 0 N/A N/A N/A AssertionError N/A N/A paddingGood True N/A ciphertext N/A bytesToString bytes N/A plaintext N/A N/A N/A N/A self _readState encContext decrypt ciphertext N/A bytes N/A stringToBytes plaintext N/A totalPaddingLength 0 N/A macGood True N/A macLength N/A N/A N/A self _readState macContext digest_size N/A endLength N/A macLength totalPaddingLength N/A N/A endLength N/A len bytes N/A N/A macGood False N/A N/A startIndex N/A N/A len bytes endLength N/A endIndex N/A startIndex macLength N/A checkBytes N/A bytes N/A startIndex endIndex N/A seqnumStr N/A N/A N/A self _readState getSeqNumStr N/A bytes N/A bytes N/A N/A endLength N/A bytesStr N/A bytesToString bytes N/A mac N/A N/A N/A N/A self _readState macContext copy N/A N/A N/A mac update seqnumStr N/A N/A N/A mac update N/A chr recordType N/A N/A N/A self version N/A 3 0 N/A N/A N/A N/A mac update N/A chr N/A N/A len bytes 256 N/A N/A N/A mac update N/A chr N/A N/A len bytes 256 N/A N/A N/A N/A self version N/A N/A 3 1 N/A 3 2 N/A N/A N/A N/A mac update N/A chr N/A N/A self version N/A 0 N/A N/A N/A mac update N/A chr N/A N/A self version N/A 1 N/A N/A N/A mac update N/A chr N/A N/A len bytes 256 N/A N/A N/A mac update N/A chr N/A N/A len bytes 256 N/A N/A N/A AssertionError N/A N/A N/A mac update bytesStr N/A macString N/A N/A mac digest N/A macBytes N/A stringToBytes macString N/A N/A macBytes checkBytes N/A N/A macGood False N/A N/A N/A paddingGood macGood N/A N/A result N/A N/A self _sendError N/A AlertDescription bad_record_mac MAC failure (or padding failure) N/A N/A N/A result N/A N/A bytes N/A _handshakeStart N/A N/A self client N/A N/A N/A N/A N/A self closed N/A N/A N/A ValueError Renegotiation disallowed for security reasons N/A N/A self _client client N/A N/A self _handshake_md5 N/A md5 N/A N/A self _handshake_sha N/A sha1 N/A N/A self _handshakeBuffer N/A N/A N/A self allegedSrpUsername None N/A N/A self _refCount 1 N/A _handshakeDone N/A N/A self resumed N/A N/A N/A N/A self resumed resumed N/A N/A self closed False N/A _calcPendingStates N/A N/A self cipherSuite masterSecret clientRandom serverRandom implementations N/A N/A N/A N/A cipherSuite N/A CipherSuite aes128Suites N/A N/A macLength 20 N/A keyLength 16 N/A ivLength 16 N/A createCipherFunc createAES N/A N/A N/A cipherSuite N/A CipherSuite aes256Suites N/A N/A macLength 20 N/A keyLength 32 N/A ivLength 16 N/A createCipherFunc createAES N/A N/A N/A cipherSuite N/A CipherSuite rc4Suites N/A N/A macLength 20 N/A keyLength 16 N/A ivLength 0 N/A createCipherFunc createRC4 N/A N/A N/A cipherSuite N/A CipherSuite tripleDESSuites N/A N/A macLength 20 N/A keyLength 24 N/A ivLength 8 N/A createCipherFunc createTripleDES N/A N/A N/A AssertionError N/A N/A N/A self version N/A 3 0 N/A N/A createMACFunc createMAC_SSL N/A N/A N/A N/A self version N/A N/A 3 1 N/A 3 2 N/A N/A createMACFunc createHMAC N/A outputLength N/A N/A N/A macLength 2 N/A keyLength 2 N/A ivLength 2 N/A N/A N/A self version N/A 3 0 N/A N/A keyBlock N/A PRF_SSL masterSecret N/A serverRandom clientRandom outputLength N/A N/A N/A N/A self version N/A N/A 3 1 N/A 3 2 N/A N/A keyBlock N/A PRF masterSecret key expansion N/A serverRandom clientRandom outputLength N/A N/A N/A AssertionError N/A clientPendingState N/A _ConnectionState N/A serverPendingState N/A _ConnectionState N/A p N/A Parser keyBlock N/A clientMACBlock N/A bytesToString N/A N/A p getFixBytes macLength N/A serverMACBlock N/A bytesToString N/A N/A p getFixBytes macLength N/A clientKeyBlock N/A bytesToString N/A N/A p getFixBytes keyLength N/A serverKeyBlock N/A bytesToString N/A N/A p getFixBytes keyLength N/A clientIVBlock N/A bytesToString N/A N/A p getFixBytes ivLength N/A serverIVBlock N/A bytesToString N/A N/A p getFixBytes ivLength N/A N/A clientPendingState macContext N/A createMACFunc clientMACBlock N/A N/A serverPendingState macContext N/A createMACFunc serverMACBlock N/A N/A clientPendingState encContext N/A createCipherFunc clientKeyBlock clientIVBlock implementations N/A N/A serverPendingState encContext N/A createCipherFunc serverKeyBlock serverIVBlock implementations N/A N/A self _client N/A N/A N/A self _pendingWriteState clientPendingState N/A N/A self _pendingReadState serverPendingState N/A N/A N/A self _pendingWriteState serverPendingState N/A N/A self _pendingReadState clientPendingState N/A N/A N/A N/A self version N/A 3 2 ivLength N/A N/A N/A self fixedIVBlock N/A getRandomBytes ivLength N/A _changeWriteState N/A N/A self N/A N/A N/A N/A self _writeState N/A self _pendingWriteState N/A N/A self _pendingWriteState N/A _ConnectionState N/A _changeReadState N/A N/A self N/A N/A N/A N/A self _readState N/A self _pendingReadState N/A N/A self _pendingReadState N/A _ConnectionState N/A _calcSSLHandshakeHash N/A N/A self masterSecret label N/A N/A N/A masterSecretStr N/A bytesToString masterSecret N/A imac_md5 N/A N/A N/A self _handshake_md5 copy N/A imac_sha N/A N/A N/A self _handshake_sha copy N/A N/A N/A imac_md5 update N/A N/A label masterSecretStr N/A 6 48 N/A N/A N/A imac_sha update N/A N/A label masterSecretStr N/A 6 40 N/A md5Str N/A N/A N/A md5 N/A N/A masterSecretStr N/A \ 48 N/A N/A imac_md5 digest digest N/A shaStr N/A N/A N/A sha1 N/A N/A masterSecretStr N/A \ 40 N/A N/A imac_sha digest digest N/A N/A stringToBytes N/A md5Str shaStr N/A N/A