Home
last modified time | relevance | path

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

/base/startup/hvb/tools/
Dhvbtool.py53 def __init__(self, sig_algo, hash_algo, bit_length, sig_bytes, hash_bytes, pubkey_bytes): argument
55 self.hash_algo = hash_algo
127 verity, self.hash_algo = struct.unpack('2I', self.cert[144:152])
154 if self.hash_algo not in self.HASH_ALGORITHMS:
155 raise HvbError("Unknown hash algorithm: {}".format(self.hash_algo))
156 msg += "\tHash algorithm: {}\n".format(self.HASH_ALGORITHMS[self.hash_algo])
680 hash_algo='sha256',
688 hash_algo='sha256',
696 hash_algo='sha256',
712 self.hash_algo = _params['hash_algo']
[all …]
/base/update/packaging_tools/
Dcreate_hashdata.py120 hash_algo = HashAlgo[self.hash_type]()
121 hash_algo.update(data)
122 return hash_algo.digest()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
Dfs_hvb.c335 static char *FsHvbGetHashAlgStr(unsigned int hash_algo) in FsHvbGetHashAlgStr() argument
339 switch (hash_algo) { in FsHvbGetHashAlgStr()
407 hashALgo = FsHvbGetHashAlgStr(cert->hash_algo); in FsHvbConstructVerityTarget()
409 BEGET_LOGE("error, hash alg %d is invalid", cert->hash_algo); in FsHvbConstructVerityTarget()
/base/startup/hvb/libhvb/src/cert/
Dhvb_cert.c57 struct hvb_buf *salt_buf, uint32_t hash_algo) in hvb_compare_hash() argument
63 uint32_t computed_hash_size = get_hash_size(hash_algo); in hvb_compare_hash()
69 hash_err = hash_ctx_init(&ctx, hash_algo); in hvb_compare_hash()
132 ret = hvb_compare_hash(&digest_buf, &image_buf, &salt_buf, cert->hash_algo); in hash_image_init_desc()
/base/startup/hvb/libhvb/include/
Dhvb_cert.h112 uint32_t hash_algo; member
/base/startup/hvb/
DREADME_zh.md122 | ohos.boot.hvb.hash_algo | 当前只支持sha256 |