#NEWLINE# def update( self , data ) : #NEWLINE# #INDENT# buf = self . _backend . _ffi . new ( 'unsigned char[]' , len ( data ) ) #NEWLINE# args = ( self . _ctx [ 0 ] , data , len ( data ) , buf ) #NEWLINE# if ( res . _operation == self . _backend . _lib . kCCEncrypt ) : #NEWLINE# #INDENT# res = self . _backend . _lib . CCCryptorGCMEncrypt ( * args ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# res = self . _backend . _lib . CCCryptorGCMDecrypt ( * args ) #NEWLINE# #UNINDENT# self . _backend . _check_cipher_response ( res ) #NEWLINE# return self . _backend . _ffi . buffer ( buf ) [ : ]