Home
last modified time | relevance | path

Searched refs:hash_algo (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/startup/hvb/tools/
H A Dhvbtool.py55 self.hash_algo = hash_algo
154 if self.hash_algo not in self.HASH_ALGORITHMS:
679 hash_algo='sha256',
687 hash_algo='sha256',
695 hash_algo='sha256',
711 self.hash_algo = _params['hash_algo']
762 hash_algo = struct.pack('I', halgo)
781 hasher = hashlib.new(self.hash_algo, self.salt)
807 hasher = hashlib.new(self.hash_algo, self.salt)
858 hasher = hashlib.new(self.hash_algo, self.salt)
[all …]
/ohos5.0/base/update/packaging_tools/
H A Dcreate_hashdata.py121 hash_algo = HashAlgo[self.hash_type]()
122 hash_algo.update(data)
123 return hash_algo.digest()
/ohos5.0/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
H A Dfs_hvb.c339 static char *FsHvbGetHashAlgStr(unsigned int hash_algo) in FsHvbGetHashAlgStr() argument
343 switch (hash_algo) { in FsHvbGetHashAlgStr()
453 hashALgo = FsHvbGetHashAlgStr(cert->hash_algo); in FsHvbConstructVerityTarget()
455 BEGET_LOGE("error, hash alg %d is invalid", cert->hash_algo); in FsHvbConstructVerityTarget()
/ohos5.0/base/startup/hvb/libhvb/src/cert/
H A Dhvb_cert.c62 struct hvb_buf *salt_buf, uint32_t hash_algo) in hvb_compare_hash() argument
68 uint32_t computed_hash_size = get_hash_size(hash_algo); in hvb_compare_hash()
74 hash_err = hash_ctx_init(&ctx, hash_algo); in hvb_compare_hash()
137 ret = hvb_compare_hash(&digest_buf, &image_buf, &salt_buf, cert->hash_algo); in hash_image_init_desc()
/ohos5.0/base/startup/hvb/libhvb/include/
H A Dhvb_cert.h112 uint32_t hash_algo; member
/ohos5.0/base/startup/hvb/
H A DREADME_zh.md122 | ohos.boot.hvb.hash_algo | 当前只支持sha256 |