Download Cryptography & Network Security: Authentication & Hash Functions - MA61027 by S. Mukhopadh and more Study Guides, Projects, Research Computer Systems Networking and Telecommunications in PDF only on Docsity!
Lecture Note 7
AUTHENTICATION REQUIREMENTS
Sourav Mukhopadhyay
Cryptography and Network Security - MA
- In the context of communications across a network, the following attacks can be identified: 1. Disclosure: Release of message contents to any person or process not possessing the appropriate cryptographic key. 2. Traffic analysis: Discovery of the pattern of traffic between parties. In a connection-oriented application, the frequency and duration of connections could be determined. In either a connection-oriented or connectionless environment, the number and length of messages between parties could be determined.
sequence of messages between parties, including insertion, deletion, and reordering.
- Timing modification: Delay or replay of messages. In a connection-orientated application, an entire session or sequence of messages could be a replay of some previous valid session, or individual messages in the sequence could be delayed or replayed.
- Repudiation: Denial of receipt of message by destination or denial of transmission of message by source.
- Message authentication is a procedure to verify that received messages come from the alleged source and have not been altered.
- Message authentication may also verify sequencing and timeliness.
- A digital signature is an authentication technique that also includes measures to counter repudiation by either source or destination.
- Any message authentication or digital signature mechanism can be viewed as having fundamentally two levels.
- Message Authentication Code (MAC): A public function of the message and a secret key that produces a fixed length value that serves as the authenticator.
- Hash Functions: A public function that maps a message of any length into a fixed length hash value, which serves as the authenticator.
- We will mainly be concerned with the last class of function however it must be noted that hash functions and MACs are very similar except that a hash code doesnât require a secret key.
- With regard to the first class, this can be seen to provide authentication by virtue of the fact that only the sender and receiver know the key.
- Therefore the message could only have come from the sender.
- However there is also the problem that the plaintext message should be recognisable as plaintext message (for example if it was some sort of digitised X-rays it mightnât be).
Figure 1: Basic uses of the hash function.
Figure 2: Basic uses of the hash function (cont.).
- The purpose of a hash function is to produce a âfingerprintâ of a file, message, or other block of data.
- To be useful for message authentication, a hash function H must have the following properties: 1. H can be applied to a block of data of any size. 2. H produces a fixed-length output. 3. H(x) is relatively easy to compute for any given x, making both hardware and software implementations practical. 4. For any given code h, it is computationally infeasible
to find x such that H(x) = h.
- For any given block x, it is computationally infeasible to find y 6 = x with H(y) = H(x) (sometimes referred to as weak collision property).
- It is computationally infeasible to find any pair (x, y) such that H(x) = H(y) (sometimes referred to as strong collision property).
- If the attacker can observe or intercept a transmission, the attacker obtains the message M and the hash code C = H(SAB||M ).
- The attacker then inverts the hash function to obtain SAB||M = Hâ^1 (C).
- Because the attacker now has both M and SAB||M , it is a trivial matter to recover SAB.
- The fifth property guarantees that an alternative message hashing to the same value as a given message cannot be found.
- This prevents forgery when an encrypted hash code is used (see figures 1b and c).
- For these cases, the opponent can read the message and therefore generate its hash code. But, because the opponent does not have the secret key, the opponent should not be able to alter the message without detection.
- If this property were not true, an attacker would be capable of the following sequence: 1. Observe or intercept a message plus its encrypted hash code.
- A hash function that satisfies the first five properties in the preceding list is referred to as a weak hash function.
- If the sixth property is also satisfied, then it is referred to as a strong hash function.
- The sixth property protects against a sophisticated class of attack known as the birthday attack which we will be looking at later in the notes.
- Figure 3 shows the general structure of a secure hash code.
- In the next section we are going to study a specific algorithm (SHA-1) which will be seen to have this format.
- Notice this has a similar structure to the CBC mode used for symmetric algorithms.