Home
last modified time | relevance | path

Searched refs:sha256_ctx (Results 1 – 5 of 5) sorted by relevance

/rk3399_rockchip-uboot/tools/rockchip/
H A Dsha2.h111 } sha256_ctx; typedef
127 sha256_ctx ctx256[1];
133 void sha256_compile(sha256_ctx ctx[1]);
136 void sha256_begin(sha256_ctx ctx[1]);
137 void sha256_hash(sha256_ctx ctx[1], const unsigned char data[], unsigned long len);
138 void sha256_end(sha256_ctx ctx[1], unsigned char hval[]);
H A Dsha2.c266 void sha256_begin(sha256_ctx ctx[1]) in sha256_begin()
279 void sha256_compile(sha256_ctx ctx[1]) in sha256_compile()
317 void sha256_hash(sha256_ctx ctx[1], const unsigned char data[], in sha256_hash()
350 void sha256_end(sha256_ctx ctx[1], unsigned char hval[]) in sha256_end()
396 sha256_ctx cx[1]; in sha256()
H A Dtrust_merger.c502 sha256_ctx ctx; in bl3xHash256()
/rk3399_rockchip-uboot/lib/avb/libavb/
H A Davb_vbmeta_image.c41 AvbSHA256Ctx sha256_ctx; in avb_vbmeta_image_verify() local
182 sha256_ctx.tot_len = sizeof(AvbVBMetaImageHeader) + in avb_vbmeta_image_verify()
184 avb_sha256_init(&sha256_ctx); in avb_vbmeta_image_verify()
186 &sha256_ctx, header_block, sizeof(AvbVBMetaImageHeader)); in avb_vbmeta_image_verify()
188 &sha256_ctx, auxiliary_block, h.auxiliary_data_block_size); in avb_vbmeta_image_verify()
189 computed_hash = avb_sha256_final(&sha256_ctx); in avb_vbmeta_image_verify()
H A Davb_slot_verify.c399 AvbSHA256Ctx sha256_ctx; in load_and_verify_hash_partition() local
408 sha256_ctx.tot_len = hash_desc.salt_len + image_size_to_hash; in load_and_verify_hash_partition()
409 avb_sha256_init(&sha256_ctx); in load_and_verify_hash_partition()
410 avb_sha256_update(&sha256_ctx, desc_salt, hash_desc.salt_len); in load_and_verify_hash_partition()
411 avb_sha256_update(&sha256_ctx, image_buf, image_size_to_hash); in load_and_verify_hash_partition()
412 digest = avb_sha256_final(&sha256_ctx); in load_and_verify_hash_partition()