2081 12

CSC327 ยท 2081 ยท 5 marks

Write short notes on (any two) a. Totient value of any positive integer. b. Properties of hash function. c. Virus or Worms.

Write short notes on (any two) a. Totient value of any positive integer. b. Properties of hash function. c. Virus or Worms. [5]

CryptographyChapter 4: Cryptographic Hash Functions and Digital SignaturesProperties of Hash functions

Quick answer

This is because all integers from 1 to (n-1) are relatively prime to a prime number.

Short Notes (Any Two)


a. Totient Value of Any Positive Integer

Definition: Euler's Totient Function, denoted by ฯ†(n), is defined as the number of positive integers less than n that are relatively prime (coprime) to n. Two numbers are relatively prime if their greatest common divisor (GCD) is 1.

Special Property: If n is a prime number, then:

ฯ†(n) = n - 1

Example: Find ฯ†(10):

  • Numbers less than 10: {1, 2, 3, 4, 5, 6, 7, 8, 9}
  • Numbers relatively prime to 10 (GCD with 10 = 1): {1, 3, 7, 9}
  • Therefore, ฯ†(10) = 4

Example with prime: Find ฯ†(7):

  • Since 7 is prime: ฯ†(7) = 7 - 1 = 6

Euler's Totient Function is widely used in RSA encryption and number theory in cryptography.


b. Properties of Hash Function

Definition: A hash function is a function that maps a message of any length into a fixed-length hash value, which serves as the authenticator in message authentication and digital signatures.

Key Properties:

PropertyDescription
One-way PropertyGiven a hash value h, it is computationally infeasible to find any message m such that H(m) = h.
Weak Collision ResistanceGiven an input m1, it is computationally hard to find a different input m2 such that H(m1) = H(m2).
Strong Collision ResistanceIt is computationally hard to find any two different messages m1 and m2 such that H(m1) = H(m2).
Fixed-length OutputRegardless of input size, the hash function always produces a fixed-length output (e.g., MD5 produces 128-bit output).
Variable Input SizeA hash function can be applied to a block of data of any size.

Example:

  • MD5 produces a 128-bit (16-byte) hash value expressed as a 32-digit hexadecimal number.
  • MD4 also produces a 128-bit message digest from an input of arbitrary length.

Hash functions play a fundamental role in efficient and secure information processing in cryptography.

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.