1/11
Looks like no tags are added yet.
Pre image Resistance with increasing message digest size that should match
Example, given 9f3, find message whose hash ends with 9f3
The longer the part of the required message digest, higher the number of attempts to find the message digest (increases exponentially).
Suggest brute forcing for hashing is computationally expensive and take long time
So it would be infeasible for attacker to find original message through brute force, proving pre image resistance
Second pre-image:
Find another message that ends with 9f3 where 9f3 is hash of x
Number of attempts increases exponentially with message digest.
So finding a h(x’) would be infeasible, proving second pre image resistance
Collision resistance:
Find any two message of hash with same last 3 digits
Here too the number of attempts increases with size of matching hexadecimal digits
however where as the number of attempts are similar for preimage and second preimage resistance, it is different here (lesser) due to the birthday paradox.
So, collision resistance provides only half the security compared to preimage and second preimage.
Hence to ensure security, we need to make collision resistance infeasible.
BLOCK: Key space in double encryption and brute force
Total number of key pairs = 2^n * 2^n = 2^ 2n
Brute force requires trying all possible combinations of the 2 keys
BLOCK: MITM and double encryption
Don’t try every key pair
Encrypt plaintext using every possible first key
Decrypt the obtained cipher text with every possible second key
Find a match between 1 and 2 to get (k1, k2)
Total computation. = 2^n + 2^n < 2^n * 2^n
So actual strength of double encryption is approx 2^n
Does double encryption provide twice the security of single encryptionn
No, it is approximately the same
BLOCK: Key space in triple encryption and brute force
2^n*2^n*2^n = 2^ 3n
Brute force requires trying all combinations of key triples
BLOCK: MITM and triple encryption
Encrypt the plaintext twice with (k1, k2) (2^ 2n size)
Decrypt the cipher text with (k3) (2^ n size)
Find a match between 1 and 2 to get (k1, k2, k3)
Total computation. = 2^2n + 2^n < 2^n 2^n 2^n
So actual strength of double encryption is approx 2^ 2n
_____ encryption provide twice the security of single encryptionn
Triple due to MITM
Extend the previous questions to X10 till X15 and derive a simple rule on how to obtain the value of a polynomial of degree less 16 mod P(X). Why are we considering polynomials of degree less than 16 and not more?
The highest power we can obtain in a product is x^7 × x^7 =x^14.
To make modulo reduction easier, we have polynomials of degree less than 16. Anything beyond 16 can be reduced using values of x^8-x^16.
Property of mix column diffusion
MixColumn provides diffusion within the columns. So the columns with non-zero bytes changes to full-non-zero bytes while ones with zeroes remain as they are.
01*FF
02*FF
03*FF
FF always
Addition is the complement.