Searched refs:sha512_ctx (Results 1 – 10 of 10) sorted by relevance
/external/mmc-utils/3rdparty/hmac_sha/ |
D | sha2.h | 74 } sha512_ctx; typedef 76 typedef sha512_ctx sha384_ctx; 100 void sha512_init(sha512_ctx *ctx); 101 void sha512_update(sha512_ctx *ctx, const unsigned char *message, 103 void sha512_final(sha512_ctx *ctx, unsigned char *digest);
|
D | hmac_sha2.h | 84 sha512_ctx ctx_inside; 85 sha512_ctx ctx_outside; 88 sha512_ctx ctx_inside_reinit; 89 sha512_ctx ctx_outside_reinit;
|
D | hmac_sha2.c | 344 sizeof(sha512_ctx)); in hmac_sha512_init() 346 sizeof(sha512_ctx)); in hmac_sha512_init() 352 sizeof(sha512_ctx)); in hmac_sha512_reinit() 354 sizeof(sha512_ctx)); in hmac_sha512_reinit()
|
D | sha2.c | 432 void sha512_transf(sha512_ctx *ctx, const unsigned char *message, in sha512_transf() 530 sha512_ctx ctx; in sha512() 537 void sha512_init(sha512_ctx *ctx) in sha512_init() 555 void sha512_update(sha512_ctx *ctx, const unsigned char *message, in sha512_update() 589 void sha512_final(sha512_ctx *ctx, unsigned char *digest) in sha512_final()
|
/external/vboot_reference/firmware/lib/cryptolib/ |
D | sha_utility.c | 29 ctx->sha512_ctx = (VB_SHA512_CTX*) VbExMalloc(sizeof(VB_SHA512_CTX)); in DigestInit() 30 SHA512_init(ctx->sha512_ctx); in DigestInit() 48 SHA512_update(ctx->sha512_ctx, data, len); in DigestUpdate() 72 Memcpy(digest, SHA512_final(ctx->sha512_ctx), SHA512_DIGEST_SIZE); in DigestFinal() 73 VbExFree(ctx->sha512_ctx); in DigestFinal()
|
/external/avb/libavb/ |
D | avb_vbmeta_image.c | 42 AvbSHA512Ctx sha512_ctx; in avb_vbmeta_image_verify() local 191 avb_sha512_init(&sha512_ctx); in avb_vbmeta_image_verify() 193 &sha512_ctx, header_block, sizeof(AvbVBMetaImageHeader)); in avb_vbmeta_image_verify() 195 &sha512_ctx, auxiliary_block, h.auxiliary_data_block_size); in avb_vbmeta_image_verify() 196 computed_hash = avb_sha512_final(&sha512_ctx); in avb_vbmeta_image_verify()
|
D | avb_slot_verify.c | 304 AvbSHA512Ctx sha512_ctx; in load_and_verify_hash_partition() local 305 avb_sha512_init(&sha512_ctx); in load_and_verify_hash_partition() 306 avb_sha512_update(&sha512_ctx, desc_salt, hash_desc.salt_len); in load_and_verify_hash_partition() 307 avb_sha512_update(&sha512_ctx, image_buf, hash_desc.image_size); in load_and_verify_hash_partition() 308 digest = avb_sha512_final(&sha512_ctx); in load_and_verify_hash_partition()
|
/external/syslinux/com32/libutil/ |
D | sha512crypt.c | 22 struct sha512_ctx { struct 95 sha512_process_block(const void *buffer, size_t len, struct sha512_ctx *ctx) in sha512_process_block() 191 static void sha512_init_ctx(struct sha512_ctx *ctx) in sha512_init_ctx() 211 static void *sha512_finish_ctx(struct sha512_ctx *ctx, void *resbuf) in sha512_finish_ctx() 242 sha512_process_bytes(const void *buffer, size_t len, struct sha512_ctx *ctx) in sha512_process_bytes() 333 struct sha512_ctx ctx; in sha512_crypt_r() 334 struct sha512_ctx alt_ctx; in sha512_crypt_r() 693 struct sha512_ctx ctx; in main()
|
/external/fio/ |
D | verify.c | 530 struct fio_sha512_ctx sha512_ctx = { in verify_io_u_sha512() local 536 fio_sha512_init(&sha512_ctx); in verify_io_u_sha512() 537 fio_sha512_update(&sha512_ctx, p, hdr->len - hdr_size(vc->td, hdr)); in verify_io_u_sha512() 539 if (!memcmp(vh->sha512, sha512_ctx.buf, sizeof(sha512))) in verify_io_u_sha512() 544 vc->bad_crc = sha512_ctx.buf; in verify_io_u_sha512() 1078 struct fio_sha512_ctx sha512_ctx = { in fill_sha512() local 1082 fio_sha512_init(&sha512_ctx); in fill_sha512() 1083 fio_sha512_update(&sha512_ctx, p, len); in fill_sha512()
|
/external/vboot_reference/firmware/lib/cryptolib/include/ |
D | sha.h | 99 VB_SHA512_CTX* sha512_ctx; member
|