• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/97

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

97 Cards in this Set

  • Front
  • Back

What is this? ^

A circumflex

Why don't we need to inverse on addencryptkey?

It's its own inverse



How do you convert a 128 bits to a 4 byte by 4 byte matrix?

32 43 f6 88 a8 5a 30 8d 31 31 98 a2 e0 37 07 34




becomes




32 a8 31 e0


43 5a 31 37


f6 30 98 07


88 8d a2 34




This happens to the plain text and the key

What does the function addroundkey(state, roundkey[0]) do?

Take the state key and xor it with the round key

What does the function shiftrows() do?



How do you decrypt AES?

Do inverse transformations in reverse order




Every Encryption Transformation Must Be Invertible

Why do we want to encrypt using AES?

We want diffusion and confusion thats fast and easy to implement on a small device. Want a finite number too, like 256. Its a nice number for computers

{… , −2, −1, 0, 1, 2, … }




All integers

+

{1, 2, … }




All positive integers

{ 𝑝/𝑞 | 𝑝, 𝑞 ∈ ℤ, 𝑞 ≠ 0 n}




Rational Numbers

“for each” or “for every”

“member of” or “in”

“there exists”

“such that”

“therefore”



“implies”

What does this notation mean? {G, *}

A group of elements in the set G, that's used on the binary operator * (multiplication)

What is the first group axiom in terms of {G, *}?

Closed under *




Rule: For each and every a and b that is a member of G, a * b is also a member of G




∀𝑎, 𝑏 ∈ 𝐺, 𝑎⦁𝑏 ∈ 𝐺

What is the second group axiom in terms of {G,*}?

Is Associative




Rule: For each and every a and b and c that is a member of set G, (a*b) * c = a (b*c)




∀𝑎, 𝑏, 𝑐 ∈ 𝐺, 𝑎 ⦁ 𝑏 ⦁ 𝑐 = 𝑎 ⦁ (𝑏 ⦁ 𝑐)

What is the third group axiom in terms of {G,*}?

Identity Element (with respect to *)




Rule: You can multiply any 2 things in your set and it will be in your set




∃ 𝑒 ∈ G ∋ 𝑎 ⦁ 𝑒 = 𝑒 ⦁ 𝑎 = 𝑎 ∀𝑎 ∈ G



What is the fourth group axiom in terms of {G,*}?

Left inverse Element (with respect to *)




Rule: For each and every a, that is a member of set G there exists a negative of a that is a member of set G and that there exists a negative of a * a that equal e




∀𝑎 ∈ 𝐺 ∃ 𝑎(hat) ∈ 𝐺 ∋ a(hat) ⦁ 𝑎 = e

Prove the first axiom such that {E,+} is true




(Even integers that are added together will still be in the set E)

Suppose you have a,b ∈ E


(a,b are members of E)




This implies that


𝑎, 𝑏 ∈ 𝐸 ⇒ ∃𝑚, 𝑛 ∈ ℤ ∋ 𝑎 = 2𝑚, 𝑏 = 2n


(A,b, are members of E. This implies that there exists m,n that are members of the intergers such that a = 2m, and b = 2n)




If this is true, then a + b = 2m + 2n = 2(m+n) are members of E. Thus this implies that a + b are members of E (are even)

Prove the second axiom such that {E,+} is true




(even integers a,bc. (a+b) + c == a + (b+c) )

Suppose a,b,c ∈ E




Then this implies that a,b,c ∈ ℤ


Then that implies that a + (b+c) = (a+b) + c

Prove the third axiom such that {E,+} is true



Let e = 0


Suppose a is in E


Then a is in E implies that A is in Z


This implies that a + e = a + 0 = a for every a in E

Prove the fourth axiom such that {E,+} is true



What is an abelian group?

Is a group (contains axioms A1-4) as well as axiom 5

What is Axiom 5?

Commutes




∀a, b ∈ 𝐺, a ⦁ b = b ⦁ a

Show a basic example of a cyclic group

𝐺 = {… , 𝑔 ^−2, 𝑔^−1, 𝑔^0, 𝑔^1, 𝑔^2, … }



What does g stand of in a cyclic group?

called the generator

What is a Ring?

{𝑅, +,×}




The Set of elements R operated on by the binary operators + and x





What rules does a ring contain?

Axioms 1-5 as well as M1-3

What does the first m rule state?

Closed Under x




∀a, b ∈ R, a × b ∈ R

What does the second m rule state?

x Is Associative




∀a,b,c ∈ R, a × b × c = a × b × c


∀a,b,c ∈ R, a(bc) = (ab)c



What does the third m rule state?

× Distributes Over +


∀ a,b,c ∈ R, 𝑎 (𝑏 + 𝑐) = ab + ac




+ Distributes Over ×


a, b, c ∊ R, (a + b)c = ac + bc

What is a commutative ring?

A ring that has rules A1-5, M1-3, and an additional rule m4

What does the fourth m rule state?

× Commutes


∀ a, b ∈ R, a × b = b × a

Do 2 x 2 matrices commute?


Do 2 x 2 diagonal matrices commute?



What is a divisor?

a × b = c, “a and b are divisors of c”




In , 2 × 3 = 6, “2 and 3 are divisors of 6”

What is a zero divisor?

a,b != 0, but a x b = 0




So In 8, 2,4 ≠ 0 but 2 × 4 = 0


(2 × 4 mod 8 = 8 mod 8 = 0)

What is an integral domain?

A commutative ring (A1-5, M1-4) that also has M5 and M6

What does the fifth m rule state?

Multiplicative Identity (with Respect to x)




∃1 ∈ R ∋ a × 1 = 1 × a = a ∀ a ∈ R

What does the sixth m rule state?

No Zero Divisors




If a, b ∈ R and a × b = 0, then a = 0 or b = 0

What is a Field?

{F, +,×}


Set of Elements F


Two Binary Operators




Contains A1-5, M1-6 and M7




Examples:


{, +,×} – Rational Numbers


{, +,×} – Real Numbers


{, +,×} – Imaginary Numbers

Is Z a field?

No, only 1 and -1 have an inverse (M7)

What does the seventh m rule state?

∃ Left Multiplicative Inverse (With Respect to x)




∀a ≠ 0 ∈ F, ∃a^−1 ∈ F ∋ a^−1 × a = 1

How do you make/find finite fields?

Start with infinite set with well known set of elements and operators (+ and x) and then reduce infinite to a finite set (somehow)





Give an example of how you'd make/find a finite field

Modulus Operator


Z = {… , −2, −1,0,1,2, … }


Becomes


Z7 = {0,1,2,3,4,5,6}

What does congruence mean?

a mod n = (b mod n)




denoted by triple equals sign: a ≡ b mod n

Give an example of congruence

73 ≡ 4 mod 23




4 mod 23 = 4 since 4 = (0) × 23 + 4


73 mod 23 = 4 since 73 = 3 × 23 + 4

How do you notate divisors?

b|a




a = mb for some m


b divides a, so b is a divisor of a



Prove this theorem:




Theorem: Zero Divisor ⇒ No Inverse

Prove 𝐹 = 5k | k ∈ ℤ} has Closure Under +



Prove {ℚ, +} has an identity element (A3)



Prove {ℚ, +} has a left inverse (A4)



Prove {Even functions, +} has a identity element



Prove {Even functions, +} has a left inverse element



Prove {Even functions, +} is closed by +



Whats an example of the integral domain?

𝑅 = ℤ = {… , −3, −2, −1, 0, 1, 2, 3, … }


+ = Integer Addition


* = Integer Multiplication

Whats an example of a field?

{ℚ, +,×} – Rational Numbers


{ℝ, +,×} – Real Numbers


{ℑ, +,×} – Imaginary Numbers

Whats an example of a commutative ring?

𝑅 = {2k | k ∈ ℤ} = {… , −4, −2, 0, 2, 4, … }


+ = Integer Addition


* = Integer Multiplication

What is a finite group?

Has a finite number of elements called "the order" and is written as Order(G), that is otherwise infinite




{F, +,x}

What is an example of a finite group?

Integers mod n


𝐺 = ℤn = {0, 1, 2, … , n − 1}


* = + mod n


Order G = n

What axioms does a finite group use?

A1-4

a ∈ Zn


∃b ∈ ℤ𝑛 ∋ ab = 1 iff gcd a, n = 1




What does this theorem state?

There is an integer a in the integers mod n,




This means that there exists some b in the integers mod n such that a times b = 1 if and only if the greatest common denominator of a and n = 1

p ∈ ℤ+


p a Field iff p prime




What does this theorem state?

There is a p in the positive integers




Then the integers mod p is a field if and only if p is prime

p ∈ ℤ+


ℤp a Field iff p prime




Prove this theorem

ℤp is a commutative ring


ℤp is a field:


iff a^-1 exists for each a != 0 in Zp


iff gcd(a,p) = 1 for each a != 0 in Zp


iff p is prime



What does Euclids Algorithm state?

If a, b in Z+, and a > b > 0, then


gcd(a,b) = gcd(b,a mod b)

Give an example of Euclids Algorithm

gcd(55, 22)


= gcd(22, 55 mod 22) = gcd(22, 11)


= gcd(11, 22 mod 11) = gcd(11, 0)


= 11

Whats the point of the mod operator?

We want a finite field of order 256




Using the mod operator can reduce an infinite set of elements to a finite set of elements (called residue classes)

What is a Galois Field?

Its a finite field with a finite number of elements

What is Galois Field Theorem?

Let F be a finite field




Then order(F) = p^n, p, n in Z+, p prime


All finite fields of order p^n are isomorphic

log2(16) = ?

4 => 2^4 = 16

log5(125) = ?

3 => 5^3 = 125

logb(b) = ?

1

logb(b^x) = ?

x

logb(x*y) = ?

logb(x) + logb(y)

logb(x/y)

logb(x) - logb(y)

logb(x^p)

plogb(x)

Prove logb(xy) = logb(x) + logb(y)

Let s = logb(x) and t = logb(y)


Then b^s = x and b^t = y


So b^(s+t) = xy


Thus logb(xy) = logb(b^s+t)


= s + t


= logb(x) + logb(y)

How is exp (exponentials) written?

exp2(4) = 2^4 = 16

What is a cyclic finite field

There exists a g in F such that for each a in f there exists a k in the positive integers where a = g^k




g is a generator of F




Can define log(g) and exp(g)

How is g a generator of F?

ℱ = {𝑔^0, 𝑔^1, 𝑔^2, … , 𝑔^(Order (ℱ )−1)

Give an example of a cyclic generator

𝐺+ = ℤ7, + mod 7


where G+ is an abelian group

Is Dr. D's new spartan field note worthy?

No, the order(D) = 7 which means D ≡ GF(7) ≡ ℤ7

3 × 5 mod 7




Write this out using log and exp

3x5 =


exp3 log3 3 × 5


exp3 log3 3 + log3 5


exp3 1 + 5


exp3 6


1

Is 2 a generator of GF(7)

No. 124 show. We dont get all numbers in mod 7 once

No. 124 show. We dont get all numbers in mod 7 once

Is 3 a generator of GF(7)

 Yes. 123456 all show and repeat

Yes. 123456 all show and repeat

How does + and - work in Z2



What are the rules that govern doing modulo on a polynomial?

f(x), g(x), q(x), r(x) ∈ A(x) , g(x) ≠ 0


f(x) = g(x)q(x) + r(x), 0 ≤ deg r < deg(g)




r = remainder when f divided by g = f mod g

What if we chose a different m(x) for a Rijndael field?

The cipher text bit might change, but the properties wont change. It would have the exact same strength

Multiply x^6 + x^4 + x^2 + x + 1 and x^7 + x + 1 without polynomial division



Where does S-box come from?

{rs} ∈ ℤ2[𝑥]𝑚(𝑥)




{rs} polynomial inRijndael field




{rs} → 𝐴{rs}^−1 + 𝑐

How does 𝑥 × 𝑔(𝑥) in GF 2 work?



How does 𝑥 × 𝑔(𝑥) in ℤ2[𝑥]𝑚(𝑥) =𝑥3+𝑥+1

What are the necessary and sufficient conditions on a and n for an element a in Zn to have a multiplicative inverse?

iff gcd(a,n) = 1 for every a in Zn

What are the necessary and sufficient conditions on n for a in Zn to be a field?

iff n is prime