CS FundamentalsHardGATE CS · Product company CS fundamentals

Which pair of primitives guarantees integrity and authenticity of a message between two parties that share a secret key, without providing non-repudiation?

  1. A. A MAC such as HMAC-SHA256
  2. B. A plain SHA-256 hash
  3. C. A digital signature with RSA
  4. D. Encryption with AES in ECB mode

Correct answer: A. A MAC such as HMAC-SHA256

A MAC needs the shared key to create or verify a tag, so it proves the message came from a key holder and was not changed; but either party could have made it, so no non-repudiation. A plain hash can be recomputed by an attacker, and signatures do provide non-repudiation.

More Computer Networks questions

Exams that ask this topic