Math220 Flashcards
Find the elements in Zn
All primes up to n
eg:
Elements in Z8:
1, 3, 5, 7
If n is prime, all integers 1 -> n-1
Find the order of each element in Zn
1^1 = 1 3^1 = 3, 3^2 = 1 5^1 = 5, 5^2 = 1 7^1 = 7, 7^2 = 1
All elements have order 2
When does Zn have generators?
Zn has generators if an element(s) powers cover all of Zns elements.
How do you get the number of invertible elements?
o(n) = (p-1)(q-1)
Z has o invertible elements
What is Euler’s o-function?
o(n) = (p-1)(q-1)
Why is 4x+2 not a good function to use in an affine cipher?
Encryption of two different plaintexts can result in the same ciphertext.
eg: f(1) = 6 and f(14) = 6
When does Zn always have a generator?
If n is prime.
Briefly, how do you decipher c in a Rabin Cipher?
DECIPHERING C: find integers u and v such that pu + qv = 1
THEN FIND: four possible values for m as +-pum_q +-qvm_p.
In particular, c is not uniquely determined by m
What are the possible orders of elements in Z23?
The order of an element in Z23 is a divisor of 23-1=22.
So 1,2,11,22 are the possible orders of Z23
What does it mean for a cryptosystem to be perfectly secure?
Perfectly secure means that the ciphertext contains no information of the message no matter how much computing or analysis you do.
Is the RSA cryptosystem secure? Why?
No.
Because it requires factoring a public key to decipher the message, so, given enough computing and analysis, you can completely recover the message.
The one-time pad is perfectly secure. Why is it not more widely used?
The key is as large as the message. So the key exchange problem is just as difficult as the initial problem of exchanging the secure message.
When is x its own inverse in Zp?
If x^2 is congruent to 1 modulo p.
How do you calculate n in an RSA cipher?
n = pq
The equation for showing the encrypted plaintext of Rabin cipher
c => m^2 mod n