Final Exam Prep Flashcards
Cryptanalysis
Science of breaking crypto systems
Symmetric Algorithm
Two parties, each with a decryption and encryption method for which they share a secret key
Asymmetric Algorithm origin
Introduced in 1976 by Diffie, Hellman and Merkle
What is an asymmetric Algorithm
Each user has their own secret key which they use to encrypt and a public key
What is the substitution cipher?
Each letter is substituted with a different letter
What is Kerckoff’s principle?
The idea that security should rely only on the key secrecy. The encryption algorithm is public knowledge to allow for ethical hacker feedback
Explain unconditional security
A cryptographic strength such that no matter how much computing power or time you have it can never be cracked
Explain Computational security
Given limited resources the cipher cannot be broken - e.g. it would take 1 billion years for a normal computer to crack through brute force
What is the ideal cryptographic strength?
An algorithm that requires brute force search through the key space. Means that for keys of 128 bits it would take approximately 18 years to crack if you were testing a key every microsecond
Ciphertext only cryptographic attack
Attacker only has access to the cipher text and no additional information
Known-plaintext attack
When the attacker has access to cipher text and corresponding plaintext for some parts of the cipher text
Chosen-plaintext attack
Attacker can choose arbitrary plaintexts and obtain their corresponding ciphertexts
Chosen-ciphertext attack
Attacker can choose ciphertext and obtain the corresponding plaintext
What are the 4 properties of a group?
- closure -> if a is an element of the group then a*b is as well
- Associativity -> a (bc) = b(ac)
- identity element -> there exists an element in the group such that ea = ae contained in G
- Inverse element -> for all a in the group there is an a’ such that a is contained in G and aa’ = a’a=e
- any inverse with its negative results in the identity element
What makes a group Ableian?
Commutativity - you can do the operations in any order and get the same answer (ab = ba) for all ab
- Always true with integers
What is a cyclic group?
generated by a single element called a generator (every element is a power of the generator) - 0,1 not elements of cyclic
e.g. for all {0,1,2,3,4} mod 5
- 2 is a generator because it can make all other elements -> 2,4,3,1,2
What is a ring
a group but it needs to satisfy rules for both addition and multiplication
Addition - closure: adding 2 elements in R gives another element in R, identity element: a+0 = a for any element in a
What makes a ring commutative?
if multiplication is commutative -> meaning ab =ba for all a and b
what is an integral domain
Special type of commutative ring that satisfies 2 properties
1. there is a special element 1 in R such that multiplying any element by 1 doesn’t change it
2. if you multiply 2 elements and the result is 0 one of the elements is 0
What is a field
An integral domain but there must be a multiplicative inverse for every element
a/b = a*b^-1 -> basically just adds division as a possibility
What is a finite field?
A field with a finite number of elements
What does relatively prime mean?
Numbers with no common factors with each other -> if modulo and a number are relatively prime than that number has a multiplicative inverse
What is a Galois Field?
Another name for a finite field - it has an order which is the number of elements it contains
-> the order is always a prime number or prime power
-> for every prime number p and every positive integer k, there are fields order p^K
What is Fermat’s Little Theorem?
if p is prime and a is a positive integer not divisible by p then
- a^(p-1) = 1 mod p
- a^p = a mod p