7. Cryptography: asymmetric encryption Flashcards

1
Q

What is a generator?

A

If p is prime, g is a generator and x is any integer g^x mod p is equally likely to be any number between 0 and p-1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does Z_p (integers subscript p) mean?

A

integers mod p, i.e 0 … p - 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does TTP stand for?

A

Online Trusted Third Party

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How does TTP work?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the components of a public-key encryption algorithm?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the Euler function?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is phi(p) where phi is the Euler function and p is a prime number?

A

p - 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is phi(pq) where phi is the Euler function and p, q are prime numbers?

A

(p - 1)(q - 1)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Z_n star (Z subscript n superscript star)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is eulers theorem?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the 4 intractable problems (for this course)?

A
  • Factoring
  • RSAP
  • Discrete Log
  • DHP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the factoring problem?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the RSAP problem?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the discrete log problem?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the DHP problem?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the public key for ElGamel?

A

g^d (mod p)

Where p is a prime, g is a generator for p and d is random between 1 and p - 2

17
Q

What is the private key for ElGamel?

A

d

Where d is a random value between 1 and p - 2

18
Q

How do you encrypt with ElGamel?

A

E(pk, m) = (g^r mod p, m * (g^d) ^r mod p)

Where r is a random integer, g^d mod p is the public key and m is the message

19
Q

How do you decrypt with ElGamel?

A

D(sk, x) = e^-d * c

Where x is the cipher text, x = (e, c) and d is the secret key

20
Q

Show the ElGamel is consistent

A

Note that x should be m