Home
last modified time | relevance | path

Searched refs:package_path (Results 1 – 4 of 4) sorted by relevance

/base/update/packaging_tools/test/
Dtest_update_package.py138 package_path = 'test.zip'
140 signing_package(package_path, "sha256",
143 with open(package_path, 'wb') as w_f:
145 check_re = signing_package(package_path, "sha256",
148 os.remove(package_path)
/base/update/packaging_tools/
Dbuild_pkcs7.py56 def calculate_package_hash(package_path): argument
63 remain_len = os.path.getsize(package_path) - ZIP_ECOD_LENGTH
64 with open(package_path, 'rb') as package_file:
158 def sign_ota_package(package_path, signed_package, private_key): argument
159 digest = calculate_package_hash(package_path)
219 write_signed_package(package_path, asn1obj.dump(), signed_package)
Dutils.py208 def unzip_package(package_path, origin='target'): argument
221 zf_obj = zipfile.ZipFile(package_path)
232 "Unzip package failed! path: %s" % package_path,
Dupdate_package.py294 def get_signing_from_server(package_path, hash_algorithm, hash_code=None): argument
314 (package_path, hash_algorithm, hash_code))