Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
Message integrity ensures that data has not been changed during storage or transmission.
Question 2 of 60 · Message Integrity · Easy
Which technique is commonly used to check message integrity?
Not quite. Try another option.
Answer: Hashing the message
A hash value can be recalculated and compared to detect changes in the message.
Question 3 of 60 · Message Integrity · Easy
What is the output of a cryptographic hash function commonly called?
Not quite. Try another option.
Answer: Message digest
A cryptographic hash function produces a fixed-length value called a message digest or hash value.
Question 4 of 60 · Message Authentication · Easy
What does message authentication primarily verify?
Not quite. Try another option.
Answer: The sender and message validity
Message authentication helps verify the source of a message and that it was not changed.
Question 5 of 60 · Message Authentication · Easy
Which mechanism uses a shared secret key to authenticate a message?
Not quite. Try another option.
Answer: Message Authentication Code
A Message Authentication Code, or MAC, is generated using a message and a shared secret key.
Question 6 of 60 · Message Authentication · Easy
A digital signature can provide message authentication and what other property?
Not quite. Try another option.
Answer: Non-repudiation
Digital signatures can help prove the sender's identity and provide non-repudiation.
Question 7 of 60 · Message Authentication · Easy
Which key is normally used to create a digital signature?
Not quite. Try another option.
Answer: The sender's private key
The sender creates a digital signature with a private key, which others verify using the corresponding public key.
Question 8 of 60 · Iterated Hash Function · Easy
What is the main idea of an iterated hash function?
Not quite. Try another option.
Answer: It processes blocks repeatedly
An iterated hash function divides the message into blocks and processes them through repeated compression steps.
Question 9 of 60 · Iterated Hash Function · Easy
What component is repeatedly applied in an iterated hash function?
Not quite. Try another option.
Answer: Compression function
The compression function processes each message block together with an intermediate hash value.
Question 10 of 60 · Iterated Hash Function · Easy
What does an iterated hash function usually produce regardless of message length?
Not quite. Try another option.
Answer: A fixed-length digest
Hash functions produce a digest of fixed length even when input messages have different lengths.
Question 11 of 60 · Iterated Hash Function · Easy
In an iterated hash function, what is usually processed first?
Not quite. Try another option.
Answer: The first message block
The message is divided into blocks and normally processed sequentially, beginning with the first block.
Question 12 of 60 · Whirlpool · Easy
What type of algorithm is Whirlpool?
Not quite. Try another option.
Answer: A cryptographic hash function
Whirlpool is a cryptographic hash function designed to produce a secure message digest.
Question 13 of 60 · Whirlpool · Easy
What is the output size of the Whirlpool hash function?
Not quite. Try another option.
Answer: 512 bits
Whirlpool produces a 512-bit message digest.
Question 14 of 60 · Whirlpool · Easy
Whirlpool is based on a design related to which type of operation?
Not quite. Try another option.
Answer: An AES-like block cipher
Whirlpool uses a compression structure based on an AES-like block cipher design.
Question 15 of 60 · SHA512 · Easy
What is the digest length produced by SHA-512?
Not quite. Try another option.
Answer: 512 bits
SHA-512 produces a fixed-length hash value of 512 bits.
Question 16 of 60 · SHA512 · Easy
What is the word size used by SHA-512?
Not quite. Try another option.
Answer: 64 bits
SHA-512 operates using 64-bit words.
Question 17 of 60 · SHA512 · Easy
What is the message block size used by SHA-512?
Not quite. Try another option.
Answer: 1024 bits
SHA-512 processes messages in blocks of 1024 bits.
Question 18 of 60 · SHA512 · Easy
SHA-512 belongs to which family of hash algorithms?
Not quite. Try another option.
Answer: SHA-2 family
SHA-512 is one of the hash algorithms in the SHA-2 family.
Question 19 of 60 · Description of MD Hash family · Easy
What does MD commonly represent in names such as MD4 and MD5?
Not quite. Try another option.
Answer: Message Digest
MD stands for Message Digest, the name used for a family of cryptographic hash functions.
Question 20 of 60 · Description of MD Hash family · Easy
What is the digest size of MD5?
Not quite. Try another option.
Answer: 128 bits
MD5 generates a 128-bit message digest.
Question 21 of 60 · Message Integrity · Medium
A software vendor publishes a file and its SHA-512 digest on the same unsecured website. An attacker can modify both. What security property is missing?
Not quite. Try another option.
Answer: Authenticated protection of the digest
A plain hash detects changes only when the expected digest is trusted. An attacker who can replace both the file and digest can defeat the check.
Question 22 of 60 · Message Integrity · Medium
Two records produce the same digest under a hash function, although their contents differ. Which hash property has failed for these records?
Not quite. Try another option.
Answer: Collision resistance
A collision occurs when distinct inputs have the same hash value. Collision resistance makes finding such a pair computationally infeasible.
Question 23 of 60 · Message Integrity · Medium
A receiver recomputes the hash of a message and obtains the expected value from a trusted source. What can the receiver reasonably conclude?
Not quite. Try another option.
Answer: The message was not altered after hashing
Matching a trusted digest supports message integrity. Hash comparison alone does not provide confidentiality, nonrepudiation, or correctness.
Question 24 of 60 · Message Authentication · Medium
Alice and Bob share a secret key and use HMAC on every message. Which pair of properties does a valid HMAC primarily provide?
Not quite. Try another option.
Answer: Integrity and origin authentication
A valid HMAC indicates that the message was unchanged and was produced by someone holding the shared key. It does not encrypt the message.
Question 25 of 60 · Message Authentication · Medium
A protocol sends H(K || M) as an authentication tag, where K is secret and M is attacker-controlled. Why is HMAC generally preferred?
Not quite. Try another option.
Answer: It has a standardized nested construction
HMAC uses carefully defined inner and outer keyed hashes. This avoids weaknesses that can affect naive secret-prefix or secret-suffix constructions.
Question 26 of 60 · Message Authentication · Medium
Bob verifies a MAC created with a key shared only by Alice and Bob. Why does this MAC not provide strong nonrepudiation?
Not quite. Try another option.
Answer: Bob could have generated the same MAC
Because both parties know the same key, either can create a valid MAC. A third party therefore cannot prove which party generated it.
Question 27 of 60 · Message Authentication · Medium
An API authenticates requests with a valid MAC but accepts an old authenticated payment request again. Which additional mechanism most directly prevents this replay?
Not quite. Try another option.
Answer: A sequence number covered by the MAC
A MAC proves authenticity but not freshness. A protected sequence number lets the receiver reject previously accepted requests.
Question 28 of 60 · Iterated Hash Function · Medium
In a Merkle-Damgard-style iterated hash, what is passed from one message-block operation to the next?
Not quite. Try another option.
Answer: The chaining value
Each compression step combines the current message block with the previous chaining value, producing the chaining value for the next step.
Question 29 of 60 · Iterated Hash Function · Medium
Why does standard padding for many iterated hashes include an encoding of the original message length?
Not quite. Try another option.
Answer: To make the padded representation unambiguous
Including the original length helps distinguish padded representations and supports a well-defined mapping from messages to complete input blocks.
Question 30 of 60 · Iterated Hash Function · Medium
A Merkle-Damgard hash has an -bit chaining value. Ignoring structural weaknesses, approximately how many hash evaluations are expected to find a collision?
Not quite. Try another option.
Answer:
The birthday effect reduces generic collision search for an -bit hash from to approximately evaluations.
Question 31 of 60 · Iterated Hash Function · Medium
An attacker knows H(M) and the length of M for a vulnerable Merkle-Damgard hash. What may a length-extension attack allow the attacker to compute?
Not quite. Try another option.
Answer: A hash for M || padding || X
The known digest can serve as a chaining state, allowing continued hashing of an extension without recovering the original message.
Question 32 of 60 · Whirlpool · Medium
Whirlpool processes a message using 512-bit blocks and produces a 512-bit digest. Which statement correctly compares these sizes?
Not quite. Try another option.
Answer: The block and digest are both 512 bits
Whirlpool uses a 512-bit block size and returns a 512-bit hash value, although these sizes represent different parts of the construction.
Question 33 of 60 · Whirlpool · Medium
Whirlpool's internal transformation was designed using principles similar to which well-known type of primitive?
Not quite. Try another option.
Answer: A substitution-permutation block cipher
Whirlpool uses an AES-like substitution-permutation structure with nonlinear substitution, permutation, diffusion, and round-key addition operations.
Question 34 of 60 · Whirlpool · Medium
Under an ideal-hash assumption, what is the approximate generic collision-security level of Whirlpool's 512-bit output?
Not quite. Try another option.
Answer: operations
For a 512-bit digest, the birthday bound gives generic collision resistance of approximately operations.
Question 35 of 60 · SHA512 · Medium
A system stores a SHA-512 digest in hexadecimal. How many hexadecimal characters are required, excluding prefixes or separators?
Not quite. Try another option.
Answer: 128 characters
Each hexadecimal character represents 4 bits, so a 512-bit digest requires hexadecimal characters.
Question 36 of 60 · SHA512 · Medium
SHA-512 is used to hash a message whose padded form contains three 1024-bit blocks. How many times is its compression function applied?
Not quite. Try another option.
Answer: Three times
The SHA-512 compression function processes each padded 1024-bit block once, updating the chaining state after every block.
Question 37 of 60 · SHA512 · Medium
Which internal word size is used by SHA-512 for its main arithmetic and logical operations?
Not quite. Try another option.
Answer: 64-bit words
SHA-512 operates primarily on 64-bit words and uses eight such words in its 512-bit chaining state.
Question 38 of 60 · Description of MD Hash family · Medium
A legacy application uses MD5 to detect deliberate tampering by an adversary. What is the main reason to replace it?
Not quite. Try another option.
Answer: Practical collision attacks exist
MD5's collision resistance is broken, so attackers can construct different inputs with the same digest. It is unsuitable for adversarial integrity checks.
Question 39 of 60 · Description of MD Hash family · Medium
MD5 outputs 128 bits, while MD4 also outputs 128 bits. Why is equal digest length insufficient to claim equal security?
Not quite. Try another option.
Answer: Construction weaknesses also affect security
Digest length gives generic bounds, but cryptanalytic weaknesses in rounds, message expansion, or compression design can reduce actual security.
Question 40 of 60 · Description of MD Hash family · Medium
A database stores MD5(password) for every user without salts. Which attack is made especially practical when many users choose the same password?
Not quite. Try another option.
Answer: Reuse of precomputed password hashes
Without unique salts, identical passwords have identical hashes, allowing attackers to reuse precomputed tables and test many accounts together.
Question 41 of 60 · Message Integrity · Hard
An attacker is given a specific message and its digest , then attempts to construct a different message such that . Which security property is directly being attacked?
Not quite. Try another option.
Answer: Second-preimage resistance
The original message is fixed before the attack, so finding a distinct with the same digest is a second-preimage attack. A collision attack allows the attacker to choose both messages.
Question 42 of 60 · Message Integrity · Hard
Assuming an ideal -bit hash, approximately how many independently chosen messages are required for a probability of finding at least one collision?
Not quite. Try another option.
Answer: messages
The birthday bound gives . For , this is approximately .
Question 43 of 60 · Message Integrity · Hard
A software distributor publishes a file and its SHA-512 digest on the same unauthenticated server. An active attacker can modify both responses. Which conclusion is correct?
Not quite. Try another option.
Answer: The digest provides no authenticated integrity against this attacker
The attacker can replace the file and publish the replacement's digest. Integrity requires an authenticated reference, such as a digitally signed digest or a MAC verified with a trusted key.
Question 44 of 60 · Message Authentication · Hard
A system authenticates messages using , where is a Merkle–Damgård hash and has a guessable length. Which forgery is enabled by length extension?
Not quite. Try another option.
Answer: Compute a tag for
The tag exposes the final chaining value. Given or guessing , the attacker can continue hashing from that state and authenticate an extension containing the original glue padding.
Question 45 of 60 · Message Authentication · Hard
Why does standard HMAC resist the ordinary length-extension attack that affects ?
Not quite. Try another option.
Answer: The outer hash authenticates a fixed-length inner digest under a separate padded-key domain
HMAC computes . The published tag is the result of the outer hash, not the exposed state of the message-processing hash.
Question 46 of 60 · Message Authentication · Hard
A zero-IV CBC-MAC is used without length binding. For one-block messages and , their tags are and . Which two-block message has the valid tag ?
Not quite. Try another option.
Answer:
After processing , the chaining value is . The second input becomes , so the final tag is .
Question 47 of 60 · Iterated Hash Function · Hard
For an ideal -bit Merkle–Damgård hash, Joux's multicollision technique constructs equal-length messages with the same digest. What is its approximate compression-function cost?
Not quite. Try another option.
Answer:
Each stage finds one collision from a common chaining value at birthday cost . Combining stages produces colliding messages for total cost about .
Question 48 of 60 · Iterated Hash Function · Hard
Which statement correctly describes the effect of Merkle–Damgård strengthening, where the encoded message length is included in the padding?
Not quite. Try another option.
Answer: It makes padded encodings unambiguous but does not eliminate length extension
Length encoding prevents simple padding ambiguities and supports the collision-resistance reduction. Nevertheless, knowing a digest and the original length can still permit continuation from the final chaining state.
Question 49 of 60 · Iterated Hash Function · Hard
Consider Davies–Meyer compression , where is a block cipher under key . For a chosen , which value is an efficiently computable fixed point satisfying ?
Not quite. Try another option.
Answer:
For , we have . Therefore, , giving a fixed point for the selected block-cipher key.
Question 50 of 60 · Whirlpool · Hard
Let be Whirlpool's previous chaining value and the next message block. Which equation represents its Miyaguchi–Preneel compression step?
Not quite. Try another option.
Answer:
Whirlpool uses a Miyaguchi–Preneel construction: the chaining value acts as the block-cipher key, and both the previous chaining value and message block are fed forward.
Question 51 of 60 · Whirlpool · Hard
Which structural description correctly matches the final Whirlpool specification?
Not quite. Try another option.
Answer: A -bit state arranged as an byte matrix and transformed for rounds
Whirlpool processes a -bit block as bytes in an matrix. Its internal block cipher uses rounds of substitution, permutation, diffusion, and key addition.
Question 52 of 60 · Whirlpool · Hard
Whirlpool appends one bit, then zero bits, and finally a -bit length field. If the original message length is , what is the minimum value of ?
Not quite. Try another option.
Answer:
The padding condition is . For , appending the bit reaches position , so no zero bits are needed before the length field.
Question 53 of 60 · SHA512 · Hard
SHA-512 appends one bit, zero bits, and a -bit length field. If the original message length satisfies , how many zero bits are appended?
Not quite. Try another option.
Answer:
SHA-512 requires . Substituting gives , so the smallest nonnegative solution is .
Question 54 of 60 · SHA512 · Hard
Which recurrence correctly generates SHA-512 message-schedule words for , with all additions modulo ?
Not quite. Try another option.
Answer:
SHA-512 expands the initial sixteen words using , , , and with the small-sigma functions.
Question 55 of 60 · SHA512 · Hard
For SHA-512's Boolean functions, let . What are and , respectively?
Not quite. Try another option.
Answer: and
With every bit of equal to , . Also, a majority among , , and is whenever either or is , giving .
Question 56 of 60 · SHA512 · Hard
Which statement correctly distinguishes standardized SHA-512/256 from simply truncating an ordinary SHA-512 digest to bits?
Not quite. Try another option.
Answer: SHA-512/256 uses a distinct initial value and returns a -bit digest
SHA-512/256 retains SHA-512's -bit operations, -bit blocks, and rounds, but uses a domain-specific initial value before truncating the result to bits.
Question 57 of 60 · SHA512 · Hard
Under an idealized analysis of full SHA-512 for ordinary fixed-length messages, which combination best describes its generic security and structural behavior?
A -bit ideal digest has birthday collision cost about and generic second-preimage cost about . SHA-512's iterated structure also permits ordinary length extension.
Question 58 of 60 · Description of MD Hash family · Hard
MD5 appends one bit, then zero bits, and finally a -bit length field. If , what is the minimum value of ?
Not quite. Try another option.
Answer:
MD5 requires . At , the appended bit passes the target position, so zero bits are needed before the length field.
Question 59 of 60 · Description of MD Hash family · Hard
Which comparison between MD4 and MD5 is accurate?
Not quite. Try another option.
Answer: MD4 uses three rounds and operations; MD5 uses four rounds and operations
Both algorithms produce -bit digests from -bit blocks using little-endian words. MD5 extends MD4's three rounds and operations to four rounds and operations.
Question 60 of 60 · Description of MD Hash family · Hard
Which feature most clearly distinguishes MD2 from the later MD4 and MD5 designs?
Not quite. Try another option.
Answer: MD2 is byte-oriented, processes -byte blocks, and incorporates a checksum
MD2 operates on bytes and -bit blocks and includes a message-dependent checksum before the final transformation. MD4 and MD5 instead use -bit operations on -bit blocks.
That's unit 4
Answer a few questions and your score shows up here.
Nearly through. Did unit 4 of CSE403 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 4 of CSE403 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.