publickeysystem
publickeysystem
Cryptography
🠶Number theory fundamentals
🠶Principles of public key crypto
systems
🠶RSA algorithm
🠶Diffi e Hellman Key exchange
Need of public key cryptography
🠶 To address 2 key issues
🠶 1. Key distribution
🠶 How to have secure communications in general
without having to trust a KDC with your key
🠶 2. Digital signature
🠶 How to verify a message comes intact from the
claimed sender
Principles of public key crypto
systems
public-key/two-key/asymmetric cryptography involves the
use of two keys:
a public-key, which may be known by anybody, and
can be
used to encrypt messages, and verify signatures
a related private-key,known only to the recipient,
used to decrypt messages, and sign (create)
signatures
Infeasible to determine private key from public
Asymmetric because
those who encrypt messages or verify signatures cannot
decrypt messages or create signatures
Public key crypto
systems
🠶 A public-key encryption scheme has 6
ingredients
🠶 Plaintext: This is the readable message or data
that is fed
into the algorithm as input.
🠶 Encryption algorithm: The encryption algorithm
performs various transformations on the
plaintext.
🠶 Public and private keys: This is a pair of keys
that have been selected so that if one is used
for encryption, the other is used for decryption.
Public key crypto systems
01/28/2025 27
Determine φ(37) and φ(35)
Because 37 is prime, all of the positive integers
from 1 through 36 are relatively prime to 37.
Thus φ(37) = 36.
To determine φ(35),
List all of the positive integers less than 35 that
are relatively prime to it:
1, 2, 3, 4, 6, 8, 9, 11, 12, 13, 16, 17, 18, 19, 22, 23,
24, 26, 27, 29, 31, 32, 33, 34.
There are 24 numbers on the list, so φ(35) =
24.
01/28/2025 28
Euler’s Totient Function
= φ(3) x φ(7)
= (3- 1) x (7- 1) = 2 x 6 = 12
01/28/2025 30
Ctd.. EX 2
When n = 35 ,Find φ(35)
To see that φ(n) = (p-1) (q-1)
01/28/2025 31
EX 3 : φ(n) = n ( 1- ) ( 1- ) .. … ( 1- )
Find : φ(1000)
Here n = 1000
So n = 23 x 53 which is ( 8 x 125) = 1000
Both
2 and 5 are prime no's so
: φ(n) = n ( 1- ) ( 1- )
: φ(1000) = 1000 ( 1- ) ( 1- ) = 1000 ( ) ( )
φ(1000) = 400
01/28/2025 32
CtdFind : φ(7000)
Here n = 7000
So n = 23 x 53 x 71 which is ( 8 x 125 x 7) = 7000
Both
2 and 5 are prime no's so
: φ(n) = n ( 1- ) ( 1- ) ( 1- )
: φ(1000) = 1000 ( 1- ) ( 1- ) ( 1- ) = 1000 ( ) ( ) ( )
φ(1000) = 2400
01/28/2025 33
From a negative integer, it is not possible to
calculate the Euler’s Totient Function.
01/28/2025 34