Unit 4: Message integrity and Hash function - Practice Quiz

CSE403 — Network Security And Cryptography 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What does message integrity ensure?

Message Integrity Easy
A. The message was compressed
B. The message was not altered
C. The message was encrypted
D. The message was deleted

2 Which technique is commonly used to check message integrity?

Message Integrity Easy
A. Printing the message
B. Renaming the message
C. Compressing the message
D. Hashing the message

3 What is the output of a cryptographic hash function commonly called?

Message Integrity Easy
A. Cipher block
B. Message digest
C. Session key
D. Digital channel

4 What does message authentication primarily verify?

Message Authentication Easy
A. The sender and message validity
B. The storage device capacity
C. The network connection speed
D. The message file size

5 Which mechanism uses a shared secret key to authenticate a message?

Message Authentication Easy
A. Memory Allocation Code
B. Media Access Code
C. Message Authentication Code
D. Message Formatting Code

6 A digital signature can provide message authentication and what other property?

Message Authentication Easy
A. Higher bandwidth
B. Data compression
C. Non-repudiation
D. Faster routing

7 Which key is normally used to create a digital signature?

Message Authentication Easy
A. The sender's public key
B. The sender's private key
C. The receiver's private key
D. The receiver's public key

8 What is the main idea of an iterated hash function?

Iterated Hash Function Easy
A. It stores every input permanently
B. It encrypts only one character
C. It sends data without processing
D. It processes blocks repeatedly

9 What component is repeatedly applied in an iterated hash function?

Iterated Hash Function Easy
A. Display function
B. Compression function
C. Printing function
D. Routing function

10 What does an iterated hash function usually produce regardless of message length?

Iterated Hash Function Easy
A. A variable-length password
B. A fixed-size image
C. A fixed-length digest
D. A variable-speed connection

11 In an iterated hash function, what is usually processed first?

Iterated Hash Function Easy
A. The encryption key
B. The first message block
C. The network address
D. The final digest

12 What type of algorithm is Whirlpool?

Whirlpool Easy
A. A network routing protocol
B. A cryptographic hash function
C. A public-key exchange
D. A block cipher mode

13 What is the output size of the Whirlpool hash function?

Whirlpool Easy
A. 128 bits
B. 1024 bits
C. 256 bits
D. 512 bits

14 Whirlpool is based on a design related to which type of operation?

Whirlpool Easy
A. A password storage file
B. A mail transfer protocol
C. A physical network cable
D. An AES-like block cipher

15 What is the digest length produced by SHA-512?

SHA512 Easy
A. 512 bits
B. 256 bits
C. 1024 bits
D. 160 bits

16 What is the word size used by SHA-512?

SHA512 Easy
A. 32 bits
B. 128 bits
C. 64 bits
D. 16 bits

17 What is the message block size used by SHA-512?

SHA512 Easy
A. 1024 bits
B. 2048 bits
C. 256 bits
D. 512 bits

18 SHA-512 belongs to which family of hash algorithms?

SHA512 Easy
A. DES family
B. MD family
C. RSA family
D. SHA-2 family

19 What does MD commonly represent in names such as MD4 and MD5?

Description of MD Hash family Easy
A. Message Delivery
B. Modern Data
C. Memory Division
D. Message Digest

20 What is the digest size of MD5?

Description of MD Hash family Easy
A. 512 bits
B. 256 bits
C. 128 bits
D. 160 bits

21 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?

Message Integrity Medium
A. Salting of the downloaded file
B. Encryption of the downloaded file
C. Authenticated protection of the digest
D. Compression of the published digest

22 Two 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. Collision resistance
B. Source availability
C. Preimage resistance
D. Key confidentiality

23 A 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 remained secret during transit
C. The message contains no software defects
D. The sender cannot deny creating it

24 Alice 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. Anonymity and nonrepudiation
B. Confidentiality and data compression
C. Integrity and origin authentication
D. Availability and access control

25 A 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 automatically encrypts the message body
B. It eliminates the need for secret keys
C. It always produces a shorter digest
D. It has a standardized nested construction

26 Bob 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. The MAC prevents messages from being stored
B. Bob could have generated the same MAC
C. Alice can modify the MAC after verification
D. The MAC necessarily reveals the shared key

27 An 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

28 In a Merkle-Damgard-style iterated hash, what is passed from one message-block operation to the next?

Iterated Hash Function Medium
A. The secret encryption key
B. The original message length only
C. The chaining value
D. The final digest only

29 Why 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 make the padded representation unambiguous
D. To turn the hash into encryption

30 A 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.

31 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?

Iterated Hash Function Medium
A. The complete original message M
B. The secret key used to encrypt M
C. A collision for every chosen message
D. A hash for M || padding || X

32 Whirlpool processes a message using 512-bit blocks and produces a 512-bit digest. Which statement correctly compares these sizes?

Whirlpool Medium
A. The block and digest are both 256 bits
B. The block and digest are both 512 bits
C. The block is twice the digest size
D. The digest is twice the block size

33 Whirlpool's internal transformation was designed using principles similar to which well-known type of primitive?

Whirlpool Medium
A. A public-key factoring scheme
B. A linear feedback shift register
C. A stream-cipher keystream combiner
D. A substitution-permutation block cipher

34 Under 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

35 A system stores a SHA-512 digest in hexadecimal. How many hexadecimal characters are required, excluding prefixes or separators?

SHA512 Medium
A. 512 characters
B. 128 characters
C. 256 characters
D. 64 characters

36 SHA-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

37 Which internal word size is used by SHA-512 for its main arithmetic and logical operations?

SHA512 Medium
A. 512-bit words
B. 64-bit words
C. 32-bit words
D. 128-bit words

38 A 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. Its input is limited to 128 bits
C. It requires a public encryption key
D. Practical collision attacks exist

39 MD5 outputs 128 bits, while MD4 also outputs 128 bits. Why is equal digest length insufficient to claim equal security?

Description of MD Hash family Medium
A. Equal outputs imply identical compression functions
B. Security depends only on message size
C. Digest length determines encryption strength only
D. Construction weaknesses also affect security

40 A 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. Forgery through sequence-number prediction
B. Reuse of precomputed password hashes
C. Decryption through padding-oracle queries
D. Recovery through public-key factorization

41 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?

Message Integrity Hard
A. Preimage resistance
B. Output uniformity
C. Second-preimage resistance
D. Collision resistance

42 Assuming 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
D. messages because every possible digest must be generated before a collision becomes probable

43 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?

Message Integrity Hard
A. The digest detects modification because SHA-512 is collision resistant
B. The digest provides no authenticated integrity against this attacker
C. The digest detects modification only when the file size is unchanged
D. The digest remains secure unless a SHA-512 preimage is found

44 A 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 without learning
B. Compute a tag for an arbitrary message of shorter length
C. Compute a tag for
D. Recover directly from the final chaining value

45 Why does standard HMAC resist the ordinary length-extension attack that affects ?

Message Authentication Hard
A. The inner hash is collision-free, so extending it would require recovering the complete secret key before any additional block can be processed
B. HMAC prevents the message from spanning more than one hash block
C. The outer hash authenticates a fixed-length inner digest under a separate padded-key domain
D. HMAC encrypts every compression-function input before hashing it

46 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 ?

Message Authentication Hard
A.
B.
C.
D.

47 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?

Iterated Hash Function Hard
A.
B.
C.
D.

48 Which 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 raises generic collision resistance from to
C. It converts every iterated hash into a secure message authentication code
D. It makes padded encodings unambiguous but does not eliminate length extension

49 Consider 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.

50 Let 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.

51 Which 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 a 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 an byte matrix and transformed for rounds

52 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 ?

Whirlpool Hard
A.
B.
C.
D.

53 SHA-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.

54 Which recurrence correctly generates SHA-512 message-schedule words for , with all additions modulo ?

SHA512 Hard
A.
B.
C.
D.

55 For SHA-512's Boolean functions, let . What are and , respectively?

SHA512 Hard
A. and
B. and
C. and
D. and

56 Which statement correctly distinguishes standardized SHA-512/256 from simply truncating an ordinary SHA-512 digest to bits?

SHA512 Hard
A. SHA-512/256 reverses each output word before selecting the first bits
B. SHA-512/256 uses a distinct initial value and returns a -bit digest
C. SHA-512/256 uses the ordinary SHA-512 initial value but executes fewer rounds
D. SHA-512/256 uses -bit words and processes -bit blocks

57 Under 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 Merkle–Damgård 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 no length extension

58 MD5 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.

59 Which comparison between MD4 and MD5 is accurate?

Description of MD Hash family Hard
A. MD4 uses four rounds and operations; MD5 uses three rounds and operations
B. MD4 parses words as big-endian values; MD5 parses words as little-endian values
C. MD4 uses three rounds and operations; MD5 uses four rounds and operations
D. MD4 produces bits from -bit blocks; MD5 produces bits from -bit blocks

60 Which feature most clearly distinguishes MD2 from the later MD4 and MD5 designs?

Description of MD Hash family Hard
A. MD2 is byte-oriented, processes -byte blocks, and incorporates a checksum
B. MD2 produces a -bit digest, whereas MD4 and MD5 produce bits
C. MD2 uses a Merkle tree, whereas MD4 and MD5 use linear iteration
D. MD2 is word-oriented, processes -byte blocks, and uses four parallel rounds