#NEWLINE# def read( self , istream ) : #NEWLINE# #INDENT# super ( KeyValue , self ) . read ( istream ) #NEWLINE# tstream = BytearrayStream ( istream . read ( self . length ) ) #NEWLINE# if self . is_type_next ( Types . STRUCTURE , tstream ) : #NEWLINE# #INDENT# self . key_material = KeyMaterialStruct ( ) #NEWLINE# self . key_material . read ( tstream ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . key_material = KeyMaterial ( ) #NEWLINE# self . key_material . read ( tstream ) #NEWLINE# #UNINDENT# while self . is_tag_next ( Tags . ATTRIBUTE , tstream ) : #NEWLINE# #INDENT# attribute = Attribute ( ) #NEWLINE# attribute . read ( tstream ) #NEWLINE# self . attributes . append ( attribute ) #NEWLINE# #UNINDENT# self . is_oversized ( tstream ) #NEWLINE# self . validate ( )