S90-18 practice question 1 of 15

Service A hashes a message, resulting in message digest X. Service A encrypts message digest X with its private key, resulting in cipher text X1…

Full set: 98 questions
Service A hashes a message, resulting in message digest X. Service A encrypts message digest X with its private key, resulting in cipher text X1. Service A sends the message and X1 to Service B. Service B hashes the message, resulting in message digest Y. Service B decrypts X1 with Service A's public key, recovering message digest X1. Service B compares X and Y and finds them not to be equal. This proves that;
Answer options
A: the message was altered
B: only Service A sent this particular message
C: public key cryptography was used
D: All of the above Correct answer
Correct Answer:
D. All of the above
Explanation

The scenario describes the creation and verification of a digital signature. This process provides multiple security assurances.
1. Authentication & Non-repudiation (B): Service B successfully decrypts the signature with Service A's public key. This cryptographically proves the signature was created with Service A's private key, authenticating the origin.
2. Integrity (A): The core purpose of comparing the hashes is to verify message integrity. Because the original hash (X) and the newly computed hash (Y) are not equal, it proves the message was altered in transit.
3. Technology Used (C): The use of a private key to encrypt (sign) and a public key to decrypt (verify) is the definition of public key cryptography. Since the described process and its outcome prove all three statements, "All of the above" is the most complete and correct answer.

Why Incorrect

A. the message was altered: This statement is correct but incomplete. The scenario also proves the sender's identity and demonstrates the use of public key cryptography.
B. only Service A sent this particular message: This statement is correct but incomplete. The failed hash comparison also proves the message was altered, and the overall method is public key cryptography.
C. public key cryptography was used: This statement is correct but incomplete. The scenario is a practical application that also proves sender identity and a lack of message integrity.

References

1. National Institute of Standards and Technology (NIST) Special Publication 800-32, "Introduction to Public Key Technology and the Federal PKI Infrastructure".

Section 2.2, "Digital Signatures," states: "A digital signature can be used to provide assurance of the... integrity of data, and non-repudiation of the originator." It details the hashing and asymmetric encryption process, confirming that a failed integrity check (unequal message digests) indicates the data has been altered, while the successful decryption of the signature authenticates the sender.

2. Stallings, W. (2020). Cryptography and Network Security: Principles and Practice (8th ed.). Pearson.

Chapter 13.1, "Digital Signatures," describes the properties of a digital signature, including verifying the author and authenticating the contents. Figure 13.1, "Digital Signature Process," illustrates the exact scenario. The text explains that if the calculated hash code does not match the decrypted one, it indicates a lack of integrity. The successful decryption itself confirms the sender's identity.

3. Paar, C., & Pelzl, J. (2010). Understanding Cryptography: A Textbook for Students and Practitioners. Springer.

Chapter 10, "Digital Signatures," explains that digital signatures provide data integrity and authenticity. Section 10.1.2, "Security Services," explicitly states: "If the verification... returns 'invalid signature,' we know that the message is not authentic, i.e., it was either maliciously changed... or the signature/message pair was created by an attacker." The scenario's successful decryption step confirms the sender, and the failed comparison confirms the alteration.

Scroll to Top