Home
last modified time | relevance | path

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

/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/crypt/include/
H A Dsha2_impl.h57 struct sha256_ctx { struct
71 void sha256_init(struct sha256_ctx *ctx); argument
72 void sha256_update(struct sha256_ctx *ctx, const unsigned char *message,
74 void sha256_final(struct sha256_ctx *ctx, unsigned char *digest);
78 void sha256_transf(struct sha256_ctx *ctx, const unsigned char *message,
/OK3568_Linux_fs/u-boot/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()
/OK3568_Linux_fs/u-boot/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()
/OK3568_Linux_fs/external/security/rk_tee_user/v2/ta/crypt/
H A Dsha2_impl.c118 void sha256_transf(struct sha256_ctx *ctx, const unsigned char *message, in sha256_transf()
316 struct sha256_ctx ctx = { }; in sha256()
323 void sha256_init(struct sha256_ctx *ctx) in sha256_init()
345 void sha256_update(struct sha256_ctx *ctx, const unsigned char *message, in sha256_update()
383 void sha256_final(struct sha256_ctx *ctx, unsigned char *digest) in sha256_final()
482 sha256_transf((struct sha256_ctx *)ctx, ctx->block, 1); in sha224_update()
483 sha256_transf((struct sha256_ctx *)ctx, shifted_message, block_nb); in sha224_update()
517 sha256_transf((struct sha256_ctx *)ctx, ctx->block, block_nb); in sha224_final()
/OK3568_Linux_fs/buildroot/package/cdrkit/
H A D0002-define-__THROW-to-avoid-build-issue-with-musl.patch29 struct sha256_ctx
/OK3568_Linux_fs/yocto/meta-openembedded/meta-oe/recipes-multimedia/cdrkit/files/
H A D0001-define-__THROW-to-avoid-build-issue-with-musl.patch29 struct sha256_ctx
/OK3568_Linux_fs/buildroot/package/meson-tools/
H A D0001-amlbootenc-gxl-remove-non-std-C-convention-in-for.patch41 SHA256_Update(&sha256_ctx, buf + hdr.first_offset, hdr.block_size);