#NEWLINE# def authenticate_additional_data( self , data ) : #NEWLINE# #INDENT# if ( self . _ctx is None ) : #NEWLINE# #INDENT# raise AlreadyFinalized ( 'Context was already finalized.' ) #NEWLINE# #UNINDENT# if self . _updated : #NEWLINE# #INDENT# raise AlreadyUpdated ( 'Update has been called on this context.' ) #NEWLINE# #UNINDENT# self . _aad_bytes_processed += len ( data ) #NEWLINE# if ( self . _aad_bytes_processed > self . _ctx . _mode . _MAX_AAD_BYTES ) : #NEWLINE# #INDENT# raise ValueError ( '{0} has a maximum AAD byte limit of {1}' . format ( self . _ctx . _mode . name , self . _ctx . _mode . _MAX_AAD_BYTES ) ) #NEWLINE# #UNINDENT# self . _ctx . authenticate_additional_data ( data )