Home
last modified time | relevance | path

Searched refs:salt_size (Results 1 – 8 of 8) sorted by relevance

/base/startup/hvb/libhvb/src/cert/
Dhvb_cert.c102 struct hvb_buf salt_buf = {cert->hash_payload.salt, cert->salt_size}; in hash_image_init_desc()
178 if (!_decode_octets(&buf, cert->salt_size, p, end)) { in _hvb_cert_payload_parser()
204 if (cur_header + cert->salt_size > end || cur_header + cert->salt_size <= cur_header) { in _hvb_cert_payload_parser_v2()
411 …hvb_errno hvb_verify_cert(struct hvb_buf *tbs, struct hvb_sign_info *sign_info, uint32_t salt_size) in hvb_verify_cert() argument
440 …= hvb_rsa_verify_pss(&pubk, hash, hash_len, sign_info->sign.addr, sign_info->sign.size, salt_size); in hvb_verify_cert()
494 ret = hvb_verify_cert(&tbs, sign_info, cert.salt_size); in cert_init_desc()
/base/startup/hvb/libhvb/include/
Dhvb_cert.h118 uint64_t salt_size; member
/base/security/code_signature/interfaces/innerkits/code_sign_utils/src/
Dcode_sign_helper.cpp93 …arg.data_size, arg.salt_size, salt[0], salt[16], salt[31], arg.flags, arg.tree_offset, // 16, 31 d… in ShowCodeSignInfo()
/base/startup/hvb/tools/
Dhvbtool.py129 self.salt_offset, self.salt_size = struct.unpack('2Q', self.cert[152:168])
134 … self.salt = struct.unpack('{}s'.format(self.salt_size), self.cert[240:240 + self.salt_size])
136 … self.cert[240 + self.salt_size : 240 + self.salt_size + self.digest_size])
137 hash_payload_size = self.salt_size + self.digest_size
153 msg += "\tsalt size: {} bytes\n".format(self.salt_size)
764 salt_size = struct.pack('Q', len(self.salt))
767 return hash_algo + salt_offset + salt_size + digest_offset + digest_size
/base/security/code_signature/utils/src/
Dcode_sign_block.cpp66 arg.salt_size = signInfo->saltSize; in GetOneFileAndCodeSignInfo()
/base/security/code_signature/test/unittest/
Dcode_sign_utils_test.cpp416 EXPECT_EQ(arg.salt_size, 0);
456 EXPECT_EQ(arg.salt_size, 0);
Denable_verity_test.cpp320 arg->salt_size = 0; in FillCommonArgs()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
Dfs_hvb.c420 RETURN_ERR_IF_APPEND_OCTETS_ERR(&p, end, (char *)cert->hash_payload.salt, cert->salt_size); in FsHvbConstructVerityTarget()