Searched refs:package_path (Results 1 – 4 of 4) sorted by relevance
/base/update/packaging_tools/test/ |
D | test_update_package.py | 138 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/ |
D | build_pkcs7.py | 56 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)
|
D | utils.py | 208 def unzip_package(package_path, origin='target'): argument 221 zf_obj = zipfile.ZipFile(package_path) 232 "Unzip package failed! path: %s" % package_path,
|
D | update_package.py | 294 def get_signing_from_server(package_path, hash_algorithm, hash_code=None): argument 314 (package_path, hash_algorithm, hash_code))
|