Question

In: Advanced Math

Consider these 2 functions (all with domain and codomain (Z/pZ) for some big prime p): h(x)...

Consider these 2 functions (all with domain and codomain (Z/pZ) for some big prime p): h(x) = 1492831*x and h(x) = x3 . Why are these bad cryptographic hash functions? Give different reasons for the two.

Solutions

Expert Solution

Given h(x)=1492831*x=x3 two functions are defined in the Co prime number theory constructing universal hash functions that is a bit more efficient than the matrix method given r. In the matrix method, we viewed the key as a vector of bits. In this method, we will instead view the key x as a vector of integers [x1,x2,...,xk] with the only requirement being that each xi is in the range {0,1,...,M −1}. For example, if we are hashing strings of length k, then xi could be the ith character (assuming our table size is at least 256) or the ith pair of characters (assuming our table size is at least 65536). Furthermore, we will require our table size M to be a prime number. To select a hash function h we choose k random numbers r1,r2,...,rk from {0,1,...,M − 1} and define: h(x) = r1x1 + r2x2 + ... + rkxk mod M.
The proof that this method is universal follows the exact same lines as the proof for the matrix method. Let x and y be two distinct keys. We want to show that Prh(h(x) = h(x)) ≤ 1/M. Since x 6= y, it must be the case that there exists some index i such that xi 6= yi. Now imagine choosing all the random numbers rj for j 6= i first. Let h′(x) = Pj6=i rjxj. So, once we pick ri we will have h(x) = h′(x) + rixi. This means that we have a collision between x and y exactly when h′(x) + rixi = h′(y) + riyi mod M, or equivalently when
ri(xi − yi) = h′(y) − h′(x) mod M. quotient in h(x) is a high floating point number hence these both cannot be hashed in the cyclic redundancy coefficients in the hashing algorithm


Related Solutions

1. (a) Let p be a prime. Prove that in (Z/pZ)[x], xp−x= x(x−1)(x−2)···(x−(p−1)). (b) Use your...
1. (a) Let p be a prime. Prove that in (Z/pZ)[x], xp−x= x(x−1)(x−2)···(x−(p−1)). (b) Use your answer to part (a) to prove that for any prime p, (p−1)!≡−1 (modp).
let R = Z x Z. P be the prime ideal {0} x Z and S...
let R = Z x Z. P be the prime ideal {0} x Z and S = R - P. Prove that S^-1R is isomorphic to Q.
Let p= 11 and 13. (a) Determine all the squares modulo p in (Z/pZ)∗. (b) Using...
Let p= 11 and 13. (a) Determine all the squares modulo p in (Z/pZ)∗. (b) Using this determine the value of the Legendre symbol(a/p)for all a∈(Z/pZ)∗. (c) For all a∈(Z/pZ)∗, compute a^((p−1)/2) and confirm that a^((p−1)/2)=(a/p).
Consider the scalar functions f(x,y,z)g(x,y,z)=x^2+y^2+z^2, g(x,y,z)=xy+xz+yz, and=h(x,y,z)=√xyz Which of the three vector fields ∇f∇f, ∇g∇g and...
Consider the scalar functions f(x,y,z)g(x,y,z)=x^2+y^2+z^2, g(x,y,z)=xy+xz+yz, and=h(x,y,z)=√xyz Which of the three vector fields ∇f∇f, ∇g∇g and ∇h∇h are conservative?
If p is prime, then Z*p is a group under multiplication.  
If p is prime, then Z*p is a group under multiplication.  
h Consider a solid T enclosed by the paraboloid z = x^2 +y^2 and the plane...
h Consider a solid T enclosed by the paraboloid z = x^2 +y^2 and the plane z = 4 (the solid above the paraboloid and below the plane). Let M the (closed) surface representing the boundary surface of T. The surface M consists of two surfaces: the paraboloid M1 and the lid M2. Orient M by an outward normal. Let F=(z,2y,-2) Compute the integral using the Divergence theorem. Carry out the computation of the triple integral using the spherical coordinates.
Consider the utility functions of three individuals: u(x) = x1/2, v(x) = ln x, and h(x)...
Consider the utility functions of three individuals: u(x) = x1/2, v(x) = ln x, and h(x) = x – 0.01 x2, where x represents wealth. Consider also the following lotteries: X = (w0 + x1, w0 + x2, w0 + x3; ¼, ½, ¼ ) = (4, 16, 25; ¼, ½, ¼), where w0 = $2, and lottery Y in which w1 = $10, so that Y = (12, 24, 33; ¼, ½, ¼). Note that Y = X +...
Given n ∈N and p prime number and consider the polynomial f (x) = xn (xn-2)+1-p...
Given n ∈N and p prime number and consider the polynomial f (x) = xn (xn-2)+1-p 1)Prove that f (x) is irreducible in Q [x] 2) If n = 1 and p = 3, find Q [x] / f (x)) 3) Show that indeed Q [x] / (f (x)) is a field in the previous paragraph PLEASE answer all subsections
Consider the hypothesis test below. H 0:  p 1 -  p 2  0   H a:  p 1 -  p 2 >...
Consider the hypothesis test below. H 0:  p 1 -  p 2  0   H a:  p 1 -  p 2 > 0 The following results are for independent samples taken from the two populations. Sample 1 Sample 2 n1 = 100 n2 = 300 p1 = 0.24 p2 = 0.13 Use pooled estimator of p. What is the value of the test statistic (to 2 decimals)?   What is the  p-value (to 4 decimals)?   With   = .05, what is your hypothesis testing conclusion?
Let G = Z x Z and H = {(a, b) in Z x Z |...
Let G = Z x Z and H = {(a, b) in Z x Z | 8 divides a+b} a. Prove directly that H is a normal subgroup in G (use the fact that closed under composition and inverses) b. Prove that G/H is isomorphic to Z8. c. What is the index of [G : H]?
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT