Home
last modified time | relevance | path

Searched refs:hash_size (Results 1 – 14 of 14) sorted by relevance

/rk3399_rockchip-uboot/arch/arm/mach-rockchip/
H A Dresource_img.c91 uint32_t hash_size; member
110 printf(" hash_size: %d\n\n", f->hash_size); in resource_dump()
115 char *hash, u32 hash_size, in resource_add_file() argument
144 f->hash_size = hash_size; in resource_add_file()
145 memcpy(f->hash, hash, hash_size); in resource_add_file()
242 et->hash, et->hash_size, in_ram); in resource_setup_list()
491 int rockchip_read_resource_dtb(void *fdt_addr, char **hash, int *hash_size) in rockchip_read_resource_dtb() argument
517 *hash_size = f->hash_size; in rockchip_read_resource_dtb()
H A Dboot_rkimg.c401 char *hash_cmp, u32 hash_size) in fdt_check_hash() argument
412 if (!hash_size) in fdt_check_hash()
415 if (hash_size == 20) in fdt_check_hash()
417 else if (hash_size == 32) in fdt_check_hash()
423 if (memcmp(hash, hash_cmp, hash_size)) { in fdt_check_hash()
493 int hash_size = 0; in dtb_scan() local
497 ret = rockchip_read_resource_dtb(fdt, &hash, &hash_size); in dtb_scan()
508 if (hash_size && fdt_check_hash(fdt, in dtb_scan()
509 fdt_totalsize(fdt), hash, hash_size)) { in dtb_scan()
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-rockchip/
H A Dresource_img.h21 uint32_t hash_size; member
63 int rockchip_read_resource_dtb(void *fdt_addr, char **hash, int *hash_size);
H A Dspl_resource_img.h83 uint32_t hash_size; member
/rk3399_rockchip-uboot/lib/avb/libavb/
H A Davb_vbmeta_image.c116 if (!avb_safe_add(&hash_end, h.hash_offset, h.hash_size) || in avb_vbmeta_image_verify()
163 if (h.hash_size != algorithm->hash_len) { in avb_vbmeta_image_verify()
211 h.hash_size) != 0) { in avb_vbmeta_image_verify()
223 h.hash_size, in avb_vbmeta_image_verify()
264 dest->hash_size = avb_be64toh(dest->hash_size); in avb_vbmeta_image_header_to_host_byte_order()
/rk3399_rockchip-uboot/drivers/crypto/
H A Dcrypto-uclass.c163 u32 hash_size = 0; in crypto_sha_final() local
169 hash_size = sizeof(null_hash_md5_value); in crypto_sha_final()
173 hash_size = sizeof(null_hash_sha1_value); in crypto_sha_final()
177 hash_size = sizeof(null_hash_sha256_value); in crypto_sha_final()
181 hash_size = sizeof(null_hash_sha512_value); in crypto_sha_final()
185 hash_size = sizeof(null_hash_sm3_value); in crypto_sha_final()
191 memcpy(output, null_hash, hash_size); in crypto_sha_final()
/rk3399_rockchip-uboot/include/dm/
H A Dof_extra.h32 int hash_size; /* Hash size */ member
/rk3399_rockchip-uboot/drivers/core/
H A Dof_extra.c32 entry->hash_size = strlen(prop); in of_read_fmap_entry()
/rk3399_rockchip-uboot/include/android_avb/
H A Davb_vbmeta_image.h147 uint64_t hash_size; member
/rk3399_rockchip-uboot/lib/zlib/
H A Ddeflate.c194 s->head[s->hash_size-1] = NIL; \
195 zmemzero((Bytef *)s->head, (unsigned)(s->hash_size-1)*sizeof(*s->head));
277 s->hash_size = 1 << s->hash_bits;
278 s->hash_mask = s->hash_size - 1;
283 s->head = (Posf *) ZALLOC(strm, s->hash_size, sizeof(Pos));
956 ds->head = (Posf *) ZALLOC(dest, ds->hash_size, sizeof(Pos));
968 zmemcpy(ds->head, ss->head, ds->hash_size * sizeof(Pos));
1343 n = s->hash_size;
H A Ddeflate.h137 uInt hash_size; /* number of elements in hash table */ member
/rk3399_rockchip-uboot/tools/rockchip/
H A Dresource_tool.c612 uint32_t hash_size; /* 20 or 32 */ member
1410 char hash[], int hash_size) in write_file() argument
1437 if (hash_size == 20) in write_file()
1440 else if (hash_size == 32) in write_file()
1496 entry.hash_size = sizeof(hash); in write_index_tbl()
/rk3399_rockchip-uboot/scripts/
H A Davbtool.py565 digest_size = vbmeta_header.hash_size
2101 self.algorithm_type, self.hash_offset, self.hash_size,
2125 self.hash_size = 0
2163 self.hash_offset, self.hash_size, self.signature_offset,
3193 h.hash_size = alg.hash_num_bytes
3463 hash_size = digest_size
3465 salt = f.read(hash_size)
3703 hash_size = digest_size
3705 salt = f.read(hash_size)
/rk3399_rockchip-uboot/tools/
H A Dkwbimage.c460 unsigned int hash_size; in kwb_compute_pubkey_hash() local
483 if (!EVP_DigestFinal(ctx, hash->hash, &hash_size)) { in kwb_compute_pubkey_hash()