def set_cipher_out(self, ciphername, iv, password, key_salt, iterations, padding): if self.cipher_out_name!=ciphername: cryptolog.info("sending data using %s encryption", ciphername) self.cipher_out_name = ciphername cryptolog("set_cipher_out%s", (ciphername, iv, password, key_salt, iterations, padding)) self.cipher_out, self.cipher_out_block_size = get_cipher(ciphername, iv, password, key_salt, iterations) self.cipher_out_padding = padding
def set_cipher_out(self, ciphername, iv, password, key_salt, iterations): if self.cipher_out_name != ciphername: log.info("sending data using %s encryption", ciphername) self.cipher_out_name = ciphername log("set_cipher_out%s", (ciphername, iv, password, key_salt, iterations)) self.cipher_out, self.cipher_out_block_size = get_cipher( ciphername, iv, password, key_salt, iterations)
def set_cipher_in(self, ciphername, iv, password, key_salt, iterations): if self.cipher_in_name != ciphername: log.info("receiving data using %s encryption", ciphername) self.cipher_in_name = ciphername log("set_cipher_in%s", (ciphername, iv, password, key_salt, iterations)) self.cipher_in, self.cipher_in_block_size = get_cipher( ciphername, iv, password, key_salt, iterations)
def set_cipher_in(self, ciphername, iv, password, key_salt, iterations): if self.cipher_in_name != ciphername: log.info("receiving data using %s encryption", ciphername) self.cipher_in_name = ciphername log("set_cipher_in%s", (ciphername, iv, password, key_salt, iterations)) self.cipher_in, self.cipher_in_block_size = get_cipher(ciphername, iv, password, key_salt, iterations)