11.6 Exercises

  1. Let p be a prime and let α be an integer with pα. Let h(x)αx(modp). Explain why h(x) is not a good cryptographic hash function.

    1. Alice claims that she knows who will win the next World Cup. She takes the name of the team, T, and encrypts it with a one-time pad K, and sends C=TK to Bob. After the World Cup is finished, Alice reveals K, and Bob computes T=CK to determine Alice’s guess. Why should Bob not believe that Alice actually guessed the correct team, even if T=CK is correct?

    2. To keep Alice from changing K, Bob requires Alice to send not only C=TK but also H(K), where H is a good cryptographic hash function. How does the use of the hash function convince Bob that Alice is not changing K?

    3. In the procedure in (b), ...

Get Introduction to Cryptography with Coding Theory, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.