#NEWLINE# def setKeys( self , outIV , outKey , inIV , inKey , outInteg , inInteg ) : #NEWLINE# #INDENT# '\n        Set up the ciphers and hashes using the given keys,\n\n        @param outIV: the outgoing initialization vector\n        @param outKey: the outgoing encryption key\n        @param inIV: the incoming initialization vector\n        @param inKey: the incoming encryption key\n        @param outInteg: the outgoing integrity key\n        @param inInteg: the incoming integrity key.\n        ' #NEWLINE# o = self . _getCipher ( self . outCipType , outIV , outKey ) #NEWLINE# self . encryptor = o . encryptor ( ) #NEWLINE# self . encBlockSize = ( o . algorithm . block_size // 8 ) #NEWLINE# o = self . _getCipher ( self . inCipType , inIV , inKey ) #NEWLINE# self . decryptor = o . decryptor ( ) #NEWLINE# self . decBlockSize = ( o . algorithm . block_size // 8 ) #NEWLINE# self . outMAC = self . _getMAC ( self . outMACType , outInteg ) #NEWLINE# self . inMAC = self . _getMAC ( self . inMACType , inInteg ) #NEWLINE# if self . inMAC : #NEWLINE# #INDENT# self . verifyDigestSize = outKey . inMAC [ 3 ]