Message integrity ensures that data has not been changed during storage or transmission.
Incorrect! Try again.
2Which technique is commonly used to check message integrity?
Message Integrity
Easy
A.Printing the message
B.Renaming the message
C.Hashing the message
D.Compressing the message
Correct Answer: Hashing the message
Explanation:
A hash value can be recalculated and compared to detect changes in the message.
Incorrect! Try again.
3What is the output of a cryptographic hash function commonly called?
Message Integrity
Easy
A.Session key
B.Cipher block
C.Digital channel
D.Message digest
Correct Answer: Message digest
Explanation:
A cryptographic hash function produces a fixed-length value called a message digest or hash value.
Incorrect! Try again.
4What does message authentication primarily verify?
Message Authentication
Easy
A.The sender and message validity
B.The message file size
C.The network connection speed
D.The storage device capacity
Correct Answer: The sender and message validity
Explanation:
Message authentication helps verify the source of a message and that it was not changed.
Incorrect! Try again.
5Which mechanism uses a shared secret key to authenticate a message?
Message Authentication
Easy
A.Media Access Code
B.Message Formatting Code
C.Message Authentication Code
D.Memory Allocation Code
Correct Answer: Message Authentication Code
Explanation:
A Message Authentication Code, or MAC, is generated using a message and a shared secret key.
Incorrect! Try again.
6A digital signature can provide message authentication and what other property?
Message Authentication
Easy
A.Data compression
B.Faster routing
C.Higher bandwidth
D.Non-repudiation
Correct Answer: Non-repudiation
Explanation:
Digital signatures can help prove the sender's identity and provide non-repudiation.
Incorrect! Try again.
7Which key is normally used to create a digital signature?
Message Authentication
Easy
A.The sender's private key
B.The receiver's private key
C.The receiver's public key
D.The sender's public key
Correct Answer: The sender's private key
Explanation:
The sender creates a digital signature with a private key, which others verify using the corresponding public key.
Incorrect! Try again.
8What is the main idea of an iterated hash function?
Iterated Hash Function
Easy
A.It processes blocks repeatedly
B.It encrypts only one character
C.It stores every input permanently
D.It sends data without processing
Correct Answer: It processes blocks repeatedly
Explanation:
An iterated hash function divides the message into blocks and processes them through repeated compression steps.
Incorrect! Try again.
9What component is repeatedly applied in an iterated hash function?
Iterated Hash Function
Easy
A.Compression function
B.Printing function
C.Routing function
D.Display function
Correct Answer: Compression function
Explanation:
The compression function processes each message block together with an intermediate hash value.
Incorrect! Try again.
10What does an iterated hash function usually produce regardless of message length?
Iterated Hash Function
Easy
A.A fixed-length digest
B.A variable-speed connection
C.A fixed-size image
D.A variable-length password
Correct Answer: A fixed-length digest
Explanation:
Hash functions produce a digest of fixed length even when input messages have different lengths.
Incorrect! Try again.
11In an iterated hash function, what is usually processed first?
Iterated Hash Function
Easy
A.The final digest
B.The network address
C.The encryption key
D.The first message block
Correct Answer: The first message block
Explanation:
The message is divided into blocks and normally processed sequentially, beginning with the first block.
Incorrect! Try again.
12What type of algorithm is Whirlpool?
Whirlpool
Easy
A.A block cipher mode
B.A cryptographic hash function
C.A public-key exchange
D.A network routing protocol
Correct Answer: A cryptographic hash function
Explanation:
Whirlpool is a cryptographic hash function designed to produce a secure message digest.
Incorrect! Try again.
13What is the output size of the Whirlpool hash function?
Whirlpool
Easy
A.512 bits
B.1024 bits
C.128 bits
D.256 bits
Correct Answer: 512 bits
Explanation:
Whirlpool produces a 512-bit message digest.
Incorrect! Try again.
14Whirlpool is based on a design related to which type of operation?
Whirlpool
Easy
A.An AES-like block cipher
B.A physical network cable
C.A mail transfer protocol
D.A password storage file
Correct Answer: An AES-like block cipher
Explanation:
Whirlpool uses a compression structure based on an AES-like block cipher design.
Incorrect! Try again.
15What is the digest length produced by SHA-512?
SHA512
Easy
A.256 bits
B.1024 bits
C.512 bits
D.160 bits
Correct Answer: 512 bits
Explanation:
SHA-512 produces a fixed-length hash value of 512 bits.
Incorrect! Try again.
16What is the word size used by SHA-512?
SHA512
Easy
A.128 bits
B.16 bits
C.64 bits
D.32 bits
Correct Answer: 64 bits
Explanation:
SHA-512 operates using 64-bit words.
Incorrect! Try again.
17What is the message block size used by SHA-512?
SHA512
Easy
A.512 bits
B.2048 bits
C.1024 bits
D.256 bits
Correct Answer: 1024 bits
Explanation:
SHA-512 processes messages in blocks of 1024 bits.
Incorrect! Try again.
18SHA-512 belongs to which family of hash algorithms?
SHA512
Easy
A.DES family
B.SHA-2 family
C.RSA family
D.MD family
Correct Answer: SHA-2 family
Explanation:
SHA-512 is one of the hash algorithms in the SHA-2 family.
Incorrect! Try again.
19What does MD commonly represent in names such as MD4 and MD5?
Description of MD Hash family
Easy
A.Modern Data
B.Memory Division
C.Message Delivery
D.Message Digest
Correct Answer: Message Digest
Explanation:
MD stands for Message Digest, the name used for a family of cryptographic hash functions.
Incorrect! Try again.
20What is the digest size of MD5?
Description of MD Hash family
Easy
A.160 bits
B.128 bits
C.256 bits
D.512 bits
Correct Answer: 128 bits
Explanation:
MD5 generates a 128-bit message digest.
Incorrect! Try again.
21A 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?
Message Integrity
Medium
A.Authenticated protection of the digest
B.Salting of the downloaded file
C.Compression of the published digest
D.Encryption of the downloaded file
Correct Answer: Authenticated protection of the digest
Explanation:
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.
Incorrect! Try again.
22Two records produce the same digest under a hash function, although their contents differ. Which hash property has failed for these records?
Message Integrity
Medium
A.Key confidentiality
B.Collision resistance
C.Source availability
D.Preimage resistance
Correct Answer: Collision resistance
Explanation:
A collision occurs when distinct inputs have the same hash value. Collision resistance makes finding such a pair computationally infeasible.
Incorrect! Try again.
23A receiver recomputes the hash of a message and obtains the expected value from a trusted source. What can the receiver reasonably conclude?
Message Integrity
Medium
A.The message was not altered after hashing
B.The message contains no software defects
C.The message remained secret during transit
D.The sender cannot deny creating it
Correct Answer: The message was not altered after hashing
Explanation:
Matching a trusted digest supports message integrity. Hash comparison alone does not provide confidentiality, nonrepudiation, or correctness.
Incorrect! Try again.
24Alice and Bob share a secret key and use HMAC on every message. Which pair of properties does a valid HMAC primarily provide?
Message Authentication
Medium
A.Integrity and origin authentication
B.Anonymity and nonrepudiation
C.Confidentiality and data compression
D.Availability and access control
Correct Answer: Integrity and origin authentication
Explanation:
A valid HMAC indicates that the message was unchanged and was produced by someone holding the shared key. It does not encrypt the message.
Incorrect! Try again.
25A protocol sends H(K || M) as an authentication tag, where K is secret and M is attacker-controlled. Why is HMAC generally preferred?
Message Authentication
Medium
A.It has a standardized nested construction
B.It eliminates the need for secret keys
C.It automatically encrypts the message body
D.It always produces a shorter digest
Correct Answer: It has a standardized nested construction
Explanation:
HMAC uses carefully defined inner and outer keyed hashes. This avoids weaknesses that can affect naive secret-prefix or secret-suffix constructions.
Incorrect! Try again.
26Bob verifies a MAC created with a key shared only by Alice and Bob. Why does this MAC not provide strong nonrepudiation?
Message Authentication
Medium
A.Bob could have generated the same MAC
B.Alice can modify the MAC after verification
C.The MAC necessarily reveals the shared key
D.The MAC prevents messages from being stored
Correct Answer: Bob could have generated the same MAC
Explanation:
Because both parties know the same key, either can create a valid MAC. A third party therefore cannot prove which party generated it.
Incorrect! Try again.
27An API authenticates requests with a valid MAC but accepts an old authenticated payment request again. Which additional mechanism most directly prevents this replay?
Message Authentication
Medium
A.A sequence number covered by the MAC
B.A larger plaintext message block
C.A public salt stored with the request
D.A second unkeyed hash of the MAC
Correct Answer: A sequence number covered by the MAC
Explanation:
A MAC proves authenticity but not freshness. A protected sequence number lets the receiver reject previously accepted requests.
Incorrect! Try again.
28In a Merkle-Damgard-style iterated hash, what is passed from one message-block operation to the next?
Iterated Hash Function
Medium
A.The final digest only
B.The secret encryption key
C.The chaining value
D.The original message length only
Correct Answer: The chaining value
Explanation:
Each compression step combines the current message block with the previous chaining value, producing the chaining value for the next step.
Incorrect! Try again.
29Why does standard padding for many iterated hashes include an encoding of the original message length?
Iterated Hash Function
Medium
A.To keep every input at one block
B.To conceal the number of message blocks
C.To turn the hash into encryption
D.To make the padded representation unambiguous
Correct Answer: To make the padded representation unambiguous
Explanation:
Including the original length helps distinguish padded representations and supports a well-defined mapping from messages to complete input blocks.
Incorrect! Try again.
30A Merkle-Damgard hash has an -bit chaining value. Ignoring structural weaknesses, approximately how many hash evaluations are expected to find a collision?
Iterated Hash Function
Medium
A.
B.
C.
D.
Correct Answer:
Explanation:
The birthday effect reduces generic collision search for an -bit hash from to approximately evaluations.
Incorrect! Try again.
31An 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?
Iterated Hash Function
Medium
A.The complete original message M
B.The secret key used to encrypt M
C.A hash for M || padding || X
D.A collision for every chosen message
Correct Answer: A hash for M || padding || X
Explanation:
The known digest can serve as a chaining state, allowing continued hashing of an extension without recovering the original message.
Incorrect! Try again.
32Whirlpool processes a message using 512-bit blocks and produces a 512-bit digest. Which statement correctly compares these sizes?
Whirlpool
Medium
A.The block is twice the digest size
B.The block and digest are both 512 bits
C.The digest is twice the block size
D.The block and digest are both 256 bits
Correct Answer: The block and digest are both 512 bits
Explanation:
Whirlpool uses a 512-bit block size and returns a 512-bit hash value, although these sizes represent different parts of the construction.
Incorrect! Try again.
33Whirlpool's internal transformation was designed using principles similar to which well-known type of primitive?
Whirlpool
Medium
A.A substitution-permutation block cipher
B.A stream-cipher keystream combiner
C.A linear feedback shift register
D.A public-key factoring scheme
Correct Answer: A substitution-permutation block cipher
Explanation:
Whirlpool uses an AES-like substitution-permutation structure with nonlinear substitution, permutation, diffusion, and round-key addition operations.
Incorrect! Try again.
34Under an ideal-hash assumption, what is the approximate generic collision-security level of Whirlpool's 512-bit output?
Whirlpool
Medium
A. operations
B. operations
C. operations
D. operations
Correct Answer: operations
Explanation:
For a 512-bit digest, the birthday bound gives generic collision resistance of approximately operations.
Incorrect! Try again.
35A system stores a SHA-512 digest in hexadecimal. How many hexadecimal characters are required, excluding prefixes or separators?
SHA512
Medium
A.256 characters
B.512 characters
C.64 characters
D.128 characters
Correct Answer: 128 characters
Explanation:
Each hexadecimal character represents 4 bits, so a 512-bit digest requires hexadecimal characters.
Incorrect! Try again.
36SHA-512 is used to hash a message whose padded form contains three 1024-bit blocks. How many times is its compression function applied?
SHA512
Medium
A.Eight times
B.Three times
C.Two times
D.One time
Correct Answer: Three times
Explanation:
The SHA-512 compression function processes each padded 1024-bit block once, updating the chaining state after every block.
Incorrect! Try again.
37Which internal word size is used by SHA-512 for its main arithmetic and logical operations?
SHA512
Medium
A.32-bit words
B.512-bit words
C.128-bit words
D.64-bit words
Correct Answer: 64-bit words
Explanation:
SHA-512 operates primarily on 64-bit words and uses eight such words in its 512-bit chaining state.
Incorrect! Try again.
38A legacy application uses MD5 to detect deliberate tampering by an adversary. What is the main reason to replace it?
Description of MD Hash family
Medium
A.Its digest cannot be stored digitally
B.Practical collision attacks exist
C.Its input is limited to 128 bits
D.It requires a public encryption key
Correct Answer: Practical collision attacks exist
Explanation:
MD5's collision resistance is broken, so attackers can construct different inputs with the same digest. It is unsuitable for adversarial integrity checks.
Incorrect! Try again.
39MD5 outputs 128 bits, while MD4 also outputs 128 bits. Why is equal digest length insufficient to claim equal security?
C.Digest length determines encryption strength only
D.Security depends only on message size
Correct Answer: Construction weaknesses also affect security
Explanation:
Digest length gives generic bounds, but cryptanalytic weaknesses in rounds, message expansion, or compression design can reduce actual security.
Incorrect! Try again.
40A database stores MD5(password) for every user without salts. Which attack is made especially practical when many users choose the same password?
Description of MD Hash family
Medium
A.Reuse of precomputed password hashes
B.Forgery through sequence-number prediction
C.Recovery through public-key factorization
D.Decryption through padding-oracle queries
Correct Answer: Reuse of precomputed password hashes
Explanation:
Without unique salts, identical passwords have identical hashes, allowing attackers to reuse precomputed tables and test many accounts together.
Incorrect! Try again.
41An 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?
Message Integrity
Hard
A.Second-preimage resistance
B.Collision resistance
C.Output uniformity
D.Preimage resistance
Correct Answer: Second-preimage resistance
Explanation:
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.
Incorrect! Try again.
42Assuming an ideal -bit hash, approximately how many independently chosen messages are required for a probability of finding at least one collision?
Message Integrity
Hard
A. messages
B. messages
C. messages because every possible digest must be generated before a collision becomes probable
D. messages
Correct Answer: messages
Explanation:
The birthday bound gives . For , this is approximately .
Incorrect! Try again.
43A 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?
Message Integrity
Hard
A.The digest remains secure unless a SHA-512 preimage is found
B.The digest detects modification only when the file size is unchanged
C.The digest detects modification because SHA-512 is collision resistant
D.The digest provides no authenticated integrity against this attacker
Correct Answer: The digest provides no authenticated integrity against this attacker
Explanation:
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.
Incorrect! Try again.
44A system authenticates messages using , where is a Merkle–Damgård hash and has a guessable length. Which forgery is enabled by length extension?
Message Authentication
Hard
A.Compute a tag for
B.Compute a tag for without learning
C.Recover directly from the final chaining value
D.Compute a tag for an arbitrary message of shorter length
Correct Answer: Compute a tag for
Explanation:
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.
Incorrect! Try again.
45Why does standard HMAC resist the ordinary length-extension attack that affects ?
Message Authentication
Hard
A.HMAC prevents the message from spanning more than one hash block
B.The outer hash authenticates a fixed-length inner digest under a separate padded-key domain
C.The inner hash is collision-free, so extending it would require recovering the complete secret key before any additional block can be processed
D.HMAC encrypts every compression-function input before hashing it
Correct Answer: The outer hash authenticates a fixed-length inner digest under a separate padded-key domain
Explanation:
HMAC computes . The published tag is the result of the outer hash, not the exposed state of the message-processing hash.
Incorrect! Try again.
46A 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 ?
Message Authentication
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
After processing , the chaining value is . The second input becomes , so the final tag is .
Incorrect! Try again.
47For 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?
Iterated Hash Function
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
Each stage finds one collision from a common chaining value at birthday cost . Combining stages produces colliding messages for total cost about .
Incorrect! Try again.
48Which statement correctly describes the effect of Merkle–Damgård strengthening, where the encoded message length is included in the padding?
Iterated Hash Function
Hard
A.It prevents ordinary length extension by hiding the final chaining value
B.It makes padded encodings unambiguous but does not eliminate length extension
C.It converts every iterated hash into a secure message authentication code
D.It raises generic collision resistance from to
Correct Answer: It makes padded encodings unambiguous but does not eliminate length extension
Explanation:
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.
Incorrect! Try again.
49Consider Davies–Meyer compression , where is a block cipher under key . For a chosen , which value is an efficiently computable fixed point satisfying ?
Iterated Hash Function
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
For , we have . Therefore, , giving a fixed point for the selected block-cipher key.
Incorrect! Try again.
50Let be Whirlpool's previous chaining value and the next message block. Which equation represents its Miyaguchi–Preneel compression step?
Whirlpool
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
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.
Incorrect! Try again.
51Which structural description correctly matches the final Whirlpool specification?
Whirlpool
Hard
A.A -bit state represented as sixteen -bit words and processed by an ARX network for rounds
B.A -bit state arranged as an byte matrix and transformed for rounds
C.A -bit state arranged as an byte matrix and transformed for rounds
D.A -bit state arranged as a byte matrix and transformed for rounds
Correct Answer: A -bit state arranged as an byte matrix and transformed for rounds
Explanation:
Whirlpool processes a -bit block as bytes in an matrix. Its internal block cipher uses rounds of substitution, permutation, diffusion, and key addition.
Incorrect! Try again.
52Whirlpool appends one bit, then zero bits, and finally a -bit length field. If the original message length is , what is the minimum value of ?
Whirlpool
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
The padding condition is . For , appending the bit reaches position , so no zero bits are needed before the length field.
Incorrect! Try again.
53SHA-512 appends one bit, zero bits, and a -bit length field. If the original message length satisfies , how many zero bits are appended?
SHA512
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
SHA-512 requires . Substituting gives , so the smallest nonnegative solution is .
Incorrect! Try again.
54Which recurrence correctly generates SHA-512 message-schedule words for , with all additions modulo ?
SHA512
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
SHA-512 expands the initial sixteen words using , , , and with the small-sigma functions.
Incorrect! Try again.
55For SHA-512's Boolean functions, let . What are and , respectively?
SHA512
Hard
A. and
B. and
C. and
D. and
Correct Answer: and
Explanation:
With every bit of equal to , . Also, a majority among , , and is whenever either or is , giving .
Incorrect! Try again.
56Which statement correctly distinguishes standardized SHA-512/256 from simply truncating an ordinary SHA-512 digest to bits?
SHA512
Hard
A.SHA-512/256 uses the ordinary SHA-512 initial value but executes fewer rounds
B.SHA-512/256 reverses each output word before selecting the first bits
C.SHA-512/256 uses -bit words and processes -bit blocks
D.SHA-512/256 uses a distinct initial value and returns a -bit digest
Correct Answer: SHA-512/256 uses a distinct initial value and returns a -bit digest
Explanation:
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.
Incorrect! Try again.
57Under an idealized analysis of full SHA-512 for ordinary fixed-length messages, which combination best describes its generic security and structural behavior?
SHA512
Hard
A.Collision cost , second-preimage cost , and resistance to all state-continuation attacks
B.Collision cost , second-preimage cost , and no length extension
C.Collision and second-preimage costs are both because its internal state and output contain bits
D.Collision cost , second-preimage cost , and Merkle–Damgård length extension
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.
Incorrect! Try again.
58MD5 appends one bit, then zero bits, and finally a -bit length field. If , what is the minimum value of ?
Description of MD Hash family
Hard
A.
B.
C.
D.
Correct Answer:
Explanation:
MD5 requires . At , the appended bit passes the target position, so zero bits are needed before the length field.
Incorrect! Try again.
59Which comparison between MD4 and MD5 is accurate?
Description of MD Hash family
Hard
A.MD4 parses words as big-endian values; MD5 parses words as little-endian values
B.MD4 produces bits from -bit blocks; MD5 produces bits from -bit blocks
C.MD4 uses three rounds and operations; MD5 uses four rounds and operations
D.MD4 uses four rounds and operations; MD5 uses three rounds and operations
Correct Answer: MD4 uses three rounds and operations; MD5 uses four rounds and operations
Explanation:
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.
Incorrect! Try again.
60Which feature most clearly distinguishes MD2 from the later MD4 and MD5 designs?
Description of MD Hash family
Hard
A.MD2 uses a Merkle tree, whereas MD4 and MD5 use linear iteration
B.MD2 is byte-oriented, processes -byte blocks, and incorporates a checksum
C.MD2 produces a -bit digest, whereas MD4 and MD5 produce bits
D.MD2 is word-oriented, processes -byte blocks, and uses four parallel rounds
Correct Answer: MD2 is byte-oriented, processes -byte blocks, and incorporates a checksum
Explanation:
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.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. 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.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →