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 encrypted
B. The message was not altered
C. The message was deleted
D. The message was compressed

2 Which 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

3 What 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

4 What 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

5 Which 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

6 A 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

7 Which 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

8 What 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

9 What 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

10 What 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

11 In 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

12 What 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

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

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

14 Whirlpool 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

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

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

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

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

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

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

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

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

19 What 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

20 What is the digest size of MD5?

Description of MD Hash family Easy
A. 160 bits
B. 128 bits
C. 256 bits
D. 512 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. Authenticated protection of the digest
B. Salting of the downloaded file
C. Compression of the published digest
D. Encryption of the downloaded file

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

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 contains no software defects
C. The message remained secret during transit
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. Integrity and origin authentication
B. Anonymity and nonrepudiation
C. Confidentiality and data compression
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 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

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

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 final digest only
B. The secret encryption key
C. The chaining value
D. The original message length 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 turn the hash into encryption
D. To make the padded representation unambiguous

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 hash for M || padding || X
D. A collision for every chosen message

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

33 Whirlpool'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

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. 256 characters
B. 512 characters
C. 64 characters
D. 128 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. 32-bit words
B. 512-bit words
C. 128-bit words
D. 64-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. Practical collision attacks exist
C. Its input is limited to 128 bits
D. It requires a public encryption key

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. Construction weaknesses also affect security
C. Digest length determines encryption strength only
D. Security depends only on message size

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

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. Second-preimage resistance
B. Collision resistance
C. Output uniformity
D. Preimage 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 because every possible digest must be generated before a collision becomes probable
D. messages

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

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

45 Why 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

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

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

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

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

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

60 Which 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