Professional Documents
Culture Documents
VII SEMESTER – B. E
UNIVERSITY SYLLABUS
B. E. (EC / TC)
Choice Based Credit System (CBCS) and Outcome Based Education (OBE)
SEMESTER – IV
Subject Code 18EC744 CIE Marks 40
Number of Lecture Hours/Week 3 (Tutorial) SEE Marks 60
40 (08 Hours per
Total Number of Lecture Hours Exam Hours 03
Module)
CREDITS – 03
Course Learning Objectives: This course will enable students to:
Understand the basics of symmetric key and public key cryptography.
Explain classical cryptography algorithms.
Acquire knowledge of mathematical concepts required for cryptography.
Describe pseudo random sequence generation technique.
Explain symmetric and asymmetric cryptography algorithms.
Modules RBT Level
Module -1
Classical Encryption Techniques: Symmetric cipher model, Substitution
techniques, Transposition techniques (Text 1: Chapter 1) Basic Concepts of
L1, L2
Number Theory and Finite Fields: Euclidean algorithm, Modular arithmetic (Text
1: Chapter 3)
Module - 2
SYMMETRIC CIPHERS: Traditional Block Cipher structure, Data encryption
standard (DES), The AES Cipher. (Text 1: Chapter 2: Section1, 2, Chapter L1, L2
4:Section 2, 3, 4)
Module - 3
Basic Concepts of Number Theory and Finite Fields: Groups, Rings and Fields,
Finite fields of the form GF(p), Prime Numbers, Fermat’s and Euler’s theorem, L1, L2
discrete logarithm. (Text 1: Chapter 3 and Chapter 7: Section 1, 2, 5)
Module - 4
ASYMMETRIC CIPHERS: Principles of Public-Key Cryptosystems, The RSA
algorithm, Diffie - Hellman Key Exchange, Elliptic Curve Arithmetic, Elliptic L1, L2,L3
Curve Cryptography (Text 1: Chapter 8, Chapter 9: Section 1, 3, 4)
Module - 5
Pseudo-Random-Sequence Generators and Stream Ciphers: Linear Congruential
L1, L2,L3
Generators, Linear Feedback Shift Registers, Design and analysis of stream
INDEX SHEET
SL. PAGE
TOPIC
NO. NO.
VTU Syllabus 2
MODULE – 3
3 Prime Numbers. 9
7 discrete logarithm 14
8 Question Bank 19
Module-3
If a group has a finite number of elements, it is referred to as a finite group, andthe order
ofthe group is equal to the number of elements in the group. Otherwise,the group is an
infinite group.
A group is said to be abelian if it satisfies the following additional condition:
When the group operation is addition, the identity element is 0; the inverse elementof a is -
a;and subtraction is defined with the following rule: a - b = a + (-b).
Cyclic Group:
Cyclic Group is defined as exponentiation within a group as a repeated applicationof the
group operator, so that a3 = aa a.
Further, a0 = e as theidentity element, and a-n = (a′ ) n, where a′ is the inverse element of a
within thegroup. A group G is cyclic if every element of G is a power ak (k is an integer) ofa
fixed element a G. The element a is said to generate the group G or to be ageneratorof G.
A cyclic group is always abelian and may be finite or infinite.
Rings
A ring R, sometimes denoted by {R, +, *}, is a set of elements with two
binaryoperations,called addition and multiplication,6 such that for all a, b, c in R the
followingaxioms are obeyed.
Fields
A field F, sometimes denoted by {F, +, *}, is a set of elements with two binary
operations,called addition and multiplication, such that for all a, b, c in F the followingaxioms
are obeyed.
The set Zn of integers{0, 1,…………, n - 1}, together with the arithmetic operations modulo
n, is a commutative ring as in table below
Any integer in Zn has a multiplicativeinverse if and only if that integer is relatively prime to n
.
If n is prime, then all of the nonzero integers in Zn are relativelyprime to n, and therefore
there exists a multiplicative inverse for all of the nonzerointegers in Zn.
Thus, for Zp we can add the following properties to those listed in Table 4.3
The above table gives the additive inverse and multiplicative inverse also addition and
multiplication modulo 7.
Prime Numbers
An integer p >1 is a prime number if and only if its only divisors are ±1and ±p.
Primenumbers play a critical role in number theory.
Table 8.1 shows the primes less than 2000.
The right-hand side is the product over all possible prime numbers p; for any
particularvalueof a, most of the exponents ap will be 0.
The value of any given positive integer can be specified by simply listing all thenonzero
exponents in the foregoing formulation.
The integer 12 is represented by 12 = 1a0 * 1a1 *2a2 * 3a3 {Let a0 = 0, a1 = 1 ,a2 = 2, a3 = 1}.
12 = 10 *11 *22 * 31
The integer 18 is represented by = 10 *11 *21 * 32
It is easy to determine the greatest common divisor of two positive integers, ifwe express
each integer as the product of primes.
Determining the prime factors of a large number is no easy task, so the precedingrelationship
does not directly lead to a practical method of calculating thegreatest common divisor.
---------------------------------------- 1
PROOF: Let S be the set of integers S= {1,2,3,………….p-2,p-1, p}.
Now consider the set of positive integers less than pi.e {1,2,3, ………… , p-1}.
Multiply each element by positive integer a, modulo p to get the new set X.
X = {a,2a,3a, ………. a(p-1)}mod p = {a mod p, 2a mod p, …………, (p-1)a modp}.
None of the elements of X is equal to zero becausea is not divisible by p.
No two of the integers in X are equal.
Assume that ja≡ ka (mod p)), where 1 … j 6 k … p - 1. Because a is relativelyprime to p, we
can eliminate a from both sides of the equationresulting in j≡ k (mod p).
This last equality is impossible, because j and k are bothpositive integers less than p.
Therefore, we know that the X consists of (p - 1) elements,are all positive integers with no
two elements equal.
We can conclude, the X consistsof the set of integers {1, 2…p - 1} in some order.
Multiplying the numbers inboth sets (p and X) and taking the result mod p yields
We can cancel the (p - 1)! Term because it is relatively prime to p. Hence completes the
proof.
Example: Prove Fermats theorem holds well for a = 7, p = 19.
------------------------------------------------ 2
Note that the first form of the theorem [Equation (1)] requires that a be relativelyprime to p,
but this form does not.
Before presenting Euler’s theorem, one important quantity in number theory is Euler’s totient
function written ϕ(n), defined asthe number of positive integers less than n and relatively
prime to n. By convention,f(1) = 1.
Euler’s Theorem
Euler’s theorem states that for every a and n that are relatively prime:
Proof: Equation (8.4) is true if n is prime, because in that case, ϕ(n) = (n - 1)and Fermat’s
theorem holds.
However, it also holds for any integer n. ϕ(n) is the number of positive integers less than n
that are relatively prime to n.Consider the set of such integers, labeled as
That is, each element xi of R is a unique positive integer less than n with gcd(xi, n) = 1.Now
multiply each element by a, modulo n:
Discrete Logarithm
Discrete logarithms are fundamental to a number of public-key algorithms, including Diffie-
Hellman key exchange and the digital signature algorithm (DSA).
The Powers of an Integer, Modulo n
For every a and n that are relatively prime
If a and n are relatively prime, then there is at least one integer m that satisfies the above
equation. namely, M = Φ(n). The least positive exponent m for which the above equation
holds is referred to in several ways
The order of a (mod n)
The exponent to which a belongs (mod n)
The length of the period generated by a
Table below shows all the powers of a, modulo 19 for all positive a 6 19. The length of the
sequence for each base value is indicated by shading. Note the following:
1. All sequences end in 1. This is consistent with the reasoning of the preceding few
paragraphs.
2. The length of a sequence divides f(19) = 18. That is, an integral number of sequences occur
in each row of the table.
3. Some of the sequences are of length 18. In this case, it is said that the base integer a
generates (via powers) the set of nonzero integers modulo 19. Each such integer is called a
primitive root of the modulus 19.
More generally, we can say that the highest possible exponent to which a number can belong
(mod n) is f(n). If a number is of this order, it is referred to as a primitive root of n. The
importance of this notion is that if a is a primitive root of n, then its powers
Table which is directly derived from Table 8.3, shows the sets of discrete logarithms that can
be defined for modulus 19
Calculation of Discrete Logarithms
Consider the equation
Recommended Questions
1. Explain Groups, Rings and Fields.
2. Explain Finite Fields of The Form GF(p).
3. Explain Fermat’s theorem.
4. Expalin Euler’s theorem.
5. Explain Discrete Logarithm.
6. With an example explain Logarithms for Modular Arithmetic.