Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q2. List with Hash Pointers [7 points) The linked list below uses hash pointers. Each item in this list has three fields: ID, previous item
Q2. List with Hash Pointers [7 points) The linked list below uses hash pointers. Each item in this list has three fields: ID, previous item ID, previous node hash, and data. To hash a block, the fields are concatenated in the same order. For example, to hash the block with ID=4, the following value is hashed (after replacing ??? with the right Prev Hash value): *43???Hessa" a. [4 points) Fill the missing hash values for this list (replace ??? by the appropriate value) Head Pointer Head Hash 4 ??? PRID Prev Hash Data 3 ??? Hessa 3 ID Rre ID Prou Hash Data ??? Ahmad PRID Prev Hash ??? Data Fatima ID Prev Hash Data SSNamess b. [1 point] Suppose that you store this list on an untrusted computer. How much data you need to store to be able to detect any malicious tampering with the data? c. [1 point] Explain how you will be able to detect if someone changes "Fatima" to "Fatma". d. [1 point] Explain how will you be able to detect if someone changes "Fatima" to "Fatma" and also re-computes the Prev Hash values of blocks with IDs 3 and 4. Q2. List with Hash Pointers [7 points) The linked list below uses hash pointers. Each item in this list has three fields: ID, previous item ID, previous node hash, and data. To hash a block, the fields are concatenated in the same order. For example, to hash the block with ID=4, the following value is hashed (after replacing ??? with the right Prev Hash value): *43???Hessa" a. [4 points) Fill the missing hash values for this list (replace ??? by the appropriate value) Head Pointer Head Hash 4 ??? PRID Prev Hash Data 3 ??? Hessa 3 ID Rre ID Prou Hash Data ??? Ahmad PRID Prev Hash ??? Data Fatima ID Prev Hash Data SSNamess b. [1 point] Suppose that you store this list on an untrusted computer. How much data you need to store to be able to detect any malicious tampering with the data? c. [1 point] Explain how you will be able to detect if someone changes "Fatima" to "Fatma". d. [1 point] Explain how will you be able to detect if someone changes "Fatima" to "Fatma" and also re-computes the Prev Hash values of blocks with IDs 3 and 4
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started