Loading...

Loading handouts...

 

/* 1. Prepare header --------------------------------------------------------*/ static void build_header(mudr209_hdr_t *hdr, uint32_t payload_len)

/* 2. Assemble record -------------------------------------------------------*/ static void assemble_record(const uint8_t *payload, uint32_t len)

uint8_t leaf_hash[SHA384_DIGEST_LEN]; sha384_hash(record_buf, sizeof(mudr209_hdr_t)+hdr->payload_sz, leaf_hash); merkle_tree_append(leaf_hash);

*Handy Handouts are for classroom and personal use only. Any commercial use is strictly prohibited.
Super Duper Publications. All rights reserved.
Contact Us: