Midterm 1 Cryptography

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/25

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

26 Terms

1
New cards

Euclid’s Propostion

if p|a•b then p|a or p|b

2
New cards

Proof of Infinite Primes

BLANK

3
New cards

Principle Modulo

Smallest pos int b in

a = b mod n

4
New cards

2 Methods to Verify Congruency

  1. Find principal modulo of both

  2. does n|a-b

5
New cards

The Order of an Element exists Proof

BLANK

6
New cards

Fermat’s Little Thm

if gcd(a,p) = 1 then

a^(p-1) = 1 mod p

7
New cards

Order of the Multiplicative Group?

It’s the Euler Phi Function

so U(6) = phi(6) = 2

8
New cards

How to Use the Euler Phi Function

gcd(n,m) = 1 then phi(nm)=phi(n)phi(m)

if phi(p^n) then phi(p^n) = p^n - p^(n-1)

phi(p) = p-1

9
New cards

RSA n

n=pq

10
New cards

RSA e

e is between 1 and phi(n)

e is relatively prime to phi(n)

11
New cards

RSA d

ed = 1 mod phi(n)

12
New cards

RSA encrypt message m

m^e mod (n)

13
New cards

RSA Decrypt m

m^d mod n

14
New cards

RSA what is public

n,e

15
New cards

How many Generators of U(p)

phi(p-1)

16
New cards

Primitive Root also means

generator

17
New cards

given Zp*, possible orders of elements?

1,2,p-1/2,p-1

18
New cards

Is y a square?

To find the potential square roots take

x^(p+1/4) mod p

the check if x squared gives y

if it doesn’t then -y is the square instead

19
New cards

possible orders of elements in general?

i think the order of elements must divide the order of the group

20
New cards

How to convert letters to numbers?

A is 1 B is 2…

then take message starting from RightSide

Ex: m: AC B

B*27^0 + SPACEIS0×27^1 + C*27² + A*27³

21
New cards

Convert Numbers to Letters?

Take big number and divide by base

123/27 the rem is the letter

then to continue next line would be 4/27 with rem 4

(i got 4 bc 123/27 is 4)

then message is from btm up. so the letter you get last is the first in the message

22
New cards

Diffie Hellman Shared Key

p, g are public

g is a generator, p is prime

A= g^a (mod p)

B=g^b (mod p)

Key=B^a (mod p) + A^b (mod p)

23
New cards

Miller Rabin Test

a^(n-1) mod n

you are testing n

do a couple values of a

if it’s always 1 then n is likely prime

24
New cards

El Gamal Public Key System

p, g, B is public

B = g^a mod p

r=g^k (mod p)

t=B^k • m

(r,t) is sent

25
New cards

Decide El Gamal

t•(rInverse)^a = m (mod p)

26
New cards

Close Primes RSA

take sqrt(n)

set t=sqrt(n) + 1

keep increasing t until sqrt(t² -n) is perfect square

then p = t + sqrt(t² - n)

and use calc for q