#NEWLINE# def write( self , ostream ) : #NEWLINE# #INDENT# tstream = BytearrayStream ( ) #NEWLINE# self . key_format_type . write ( tstream ) #NEWLINE# if ( self . key_compression_type is not None ) : #NEWLINE# #INDENT# self . key_compression_type . write ( tstream ) #NEWLINE# #UNINDENT# self . key_value . write ( tstream ) #NEWLINE# if ( ostream . cryptographic_algorithm is not None ) : #NEWLINE# #INDENT# self . cryptographic_algorithm . write ( tstream ) #NEWLINE# #UNINDENT# if ( self . cryptographic_length is not None ) : #NEWLINE# #INDENT# self . cryptographic_length . write ( tstream ) #NEWLINE# #UNINDENT# if ( self . key_wrapping_data is not None ) : #NEWLINE# #INDENT# self . key_wrapping_data . write ( tstream ) #NEWLINE# #UNINDENT# self . length = tstream . length ( ) #NEWLINE# super ( KeyBlock , self ) . write ( ostream ) #NEWLINE# ostream . write ( tstream . buffer )