Public Key Crypto Flashcards

1
Q

What is the additive inverse of 8 MOD 20

A

12The number that when we add 8 to, 8 MOD 20 results in 0P2 L7

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

what is the multiplicative inverse of 3 MOD 17

A

6Given X, find Y such that X*Y MOD N = 1P2 L7

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

if n=21, what is totient(n)

A

12find relatively prime factors of n21 = 3 * 7, (3-1)*(7-1) = 12P2 L7

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

Use the totient technique to find c:c = 7^27 MOD 30

A

this is the same as 7 ^ (27 MOD totient(30))totient(30) = totient(3) * totient(10) = 2 * (2-1)(5-1) = 2 * 4 = 827 MOD 8 = 37^3 (MOD 30) = 343 MOD 30 = 13P2 L7

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

RSAGiven p = 3 and q = 11A) compute nB) compute totient(n)Assume e = 7C) compute dD) what is the public keyE) what is the private key

A

A) n = pq = 33B) totient(n) = (3-1)(11-1) = 20C) d = (e * d) MOD totient(n) = 1 = (7 * d) MOD 21 = 1; d = 3D) (e, n) = (7, 33)E) (d, n) = (3, 33)P2 L7

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

What is the RSA encryption formula for value X?

A

public key = (e, n)(X ** e) MOD nP2 L7

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

What is the RSA decryption formula for value X?

A

private key = (d, n)(X ** d) MOD nP2 L7

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

When implementing RSA, it is best to use:A) Your own custom software, to ensure a secure systemB) use the standard libraries for RSA

A

B)P2 L7

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

In Diffie Helman, Alice and Bob agree to use prime q = 23 and primitive root alpha = 5Alice choses secret A = 6, and Bob chooses secret B = 15.What number does Alice send Bob?What number does Bob send Alice?

A

Alice sends bob (5^6) mod 23 = 8Bob sends Alice (5^15) mod 23 = 19P2 L7

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

RSA is a block cipher in which the plaintext and ciphertext are integers between 0 and n-1 for some n

A

trueP2 L7

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

If someone invents a very efficient method to factor large integers, then RSA becomes insecure

A

trueP2 L7

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

The Diffie-Helman algorithm depends for its effectiveness on the difficulty of computing discrete logarithms

A

trueP2 L7

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

The Diffie-Helman key exchange protocol is vulnerable to a man-in-the-middle attack because it does not authenticate the participants

A

trueP2 L7

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

RSA and Diffie-Helman are the only public-key algoritms

A

falseP2 L7

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