
11
Security and Cryptography
It is possible to ensure that only the intended receiver of the message is able to cal-
culate the MAC of the message. This is done by calculating the hash on the message
content and a secret key shared between the sender and the receiver (obtained, for
example, by PKC for SKC). In other words, the one-way hash function operates on a
combination of the message content and the key to produce a hash which is known as
the Message Authentication Code (MAC). Since an eavesdropper does not have the
key, they cannot calculate the MAC of the message.
1.2.3 Authentication
Suppose that A and B are trying to communicate securely ...