Lines Matching refs:file
6 # you may not use this file except in compliance with the License.
26 sign one file with private key
27 :param sign_file: path of file ready to be signed
32 with open(sign_file, 'rb') as file:
33 chunk = file.read(BLOCK_SIZE)
36 chunk = file.read(BLOCK_SIZE)
46 get hash signed data of file lists, hash signed data format:
54 :param file_lists: path list of file ready to be signed, list item contains file_path and name_in_signed_data
65 UPDATE_LOGGER.print_log("signed file can't be more than %d" % max_file_num,
69 for file, name in file_lists:
70 sign_res = sign_func(file, private_key_file)
72 UPDATE_LOGGER.print_log("sign file {} failed".format(name), log_type=UPDATE_LOGGER.ERROR_LOG)