Class Test one 06.11.24
Class Test one 06.11.24
SECURITY
ANSWER KEY – CLASS TEST ON 06.11.2024
PART A (2 Marks)
Second Version
An alternative form of Fermat's theorem
is also useful: If p is prime and a is a
positive integer, then
2.Find the GCD of (2740, 1760) using
Euclid‟s Algorithm.
GCD(2749,1760)=20
3.State Euler‟s theorem.
In number theory, Euler's theorem (also known as the Fermat–Euler
theorem or Euler's totient theorem) states that,
if n and a are coprime positive integers, then is congruent
to modulo n, where denotes Euler's totient function; that is
a^(p-1) ≡ 1 (mod p)
_Given:_
a = 52
p = 41
_Apply FLT:_
52^(41-1) ≡ 1 (mod 41)
52^40 ≡ 1 (mod 41)
_Result:_
PART- B
1.Explain RSA algorithm, perform
encryption and decryption to the
system with p=7, q=11, e=17, M=8(8)
*Key Generation*
*Encryption*
Message (M): 8
*Decryption*
*Example Walkthrough*
*Security*
Advantages:
Limitations:
- Computational overhead
- Key size limitations 2. Here are
the solutions:
Given:
Given:
Alice computes:
K = YB^XA mod q
= 73^6 mod 83
= 73^6 = 31640625 mod 83
= 58
Bob computes:
K = YA^XB mod q
= 8^10 mod 83
= 8^10 = 1073741824 mod 83
= 58
3.x = (M1 X1 a1 + M2 X2 a2 + M3 X3 a3 +
M4 X4 a4) mod M
= (693 * 2 * 1 + 495 * 3 * 2 + 385 * 4 * 3 +
315 * 8 * 4) mod 3465
= (1386 + 2970 + 4620 + 10,080) mod
3465
= 19056 mod 3465
= 1731
x = 1731