


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



No. Recall that RSA restricts the message to be signed to be smaller than n.
If m is larger than n, then message m and message (m mod-n) would have the same signature. So it would be easy to generate different messages that have the same signature.
Otherwise it would be easiy to find two messages with the same hash. Let M' be any message that is not a multiple of 512 bits. Let M be M' padded as in MD4, so M is a multiple of 512 bits. If no padding is used for M (because it is a multiple of 512 bits) then MD4(M) would be the same as MD4(M').
Because d is the multiplicative inverse of e mod-(p−1)⋅(q−1), it is unique modulo (p−1)⋅(q−1). [Recall e has a multiplicative inverse mod (p−1)⋅(q−1) iff e is relatively prime to (p−1)⋅(q−1). So multiplying the elements of Z(p−1)⋅(q−1) by e results in a permutation of Z(p−1)⋅(q−1), so there is only one element in Z(p−1)⋅(q−1) which yields 1 when multiplied by e.]
Let s 1 be the signature of m 1 , i.e., s 1 = m 1 d^ mod-n. Let s 2 be the signature of m 2 , i.e., s 2 = m 2 d^ mod-n. Signature(m 1 j) = s 1 j^ mod-n [because (m 1 j)d^ mod-n = (m 1 d)j^ mod-n]. Signature(m 1 −^1 ) = s 1 −^1 mod-n [because (m 1 −^1 )d^ mod-n = (m 1 d)−^1 mod-n], assuming m 1 −^1 exists. Signature(m 1 ⋅m 2 ) = s 1 ⋅s 2 mod-n [because (m 1 ⋅m 2 )d^ mod-n = (m 1 d)⋅(m 2 d) mod-n]. Signature(m 1 j⋅m 2 k) = s 1 j⋅s 2 k^ mod-n [from above].
25 = (11001) 2 [25 = 16 + 8 + 1] 131 (1)^ mod-15 = 11 131 (10)^ mod-15 = 11⋅11 mod-15 = 121 mod-15 = 1 131 (11)^ mod-15 = 1⋅11 mod-15 = 11 mod-15 = 11 131 (110)^ mod-15 = 11⋅11 mod-15 = 121 mod-15 = 1 131 (1100)^ mod-15 = 1⋅1 mod-15 = 1 131 (11000)^ mod-15 = 1⋅1 mod-15 = 1 131 (11001)^ mod-15 = 1⋅11 mod-15 = 11 So 131^25 mod-15 = 11
By Euclid’s algorithm, there exist integers u and v such that u⋅m + v⋅n = gcd(m,n). Dividing both sides by gcd(m,n) gives u⋅(m/gcd(m,n)) + v⋅(n/gcd(m,n)) = 1. So by Euclid algorithm, m/gcd(m,n) and n/gcd(m,n) are relatively prime (note that both are integers by definition of gcd).
We have already established the following:
We also have that if p 1 , p 2 , ⋅⋅⋅, pn, q are distinct primes, then (p 1 a1⋅p 2 a2^ ⋅⋅⋅⋅ pnan) and qb are relatively prime.
Hence by induction φ( p 1 a1^ ⋅ p 2 a2^ ⋅ ⋅ ⋅ pkak^ ) = (p 1 −1)⋅p 1 a1−^1 ⋅ (p 2 −1)⋅p 2 a2−^1 ⋅⋅⋅ (pk−1)⋅pkak−^1
The Chinese remainder theorem shows us that there is exactly one such x and how to compute it.
Applying the CRT to z 1 and z 2 yields the following:
Applying the CRT to z 1 ⋅z 2 and z 3 yields the following:
In summary, x = [ p⋅c⋅(z 1 ⋅z 2 ) + x 3 ⋅d⋅z 3 ] mod z 1 ⋅z 2 ⋅z 3 where