



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!




1
2
3
( k ) 1 Return ( N , p , q ) 10 NUMBER-THEORETIC PRIM Definition 10.9 A modulus generator with associated security parameter k (where k ≥ integer) is a randomized algorithm that takes no inputs and returns integers N, p, q satisfyi
Definition 10.9 A modulus generator with associated security parameter k (where k integer) is a randomized algorithm that takes no inputs and returns integers N, p, q sat
4
( k ) 1 appropriately. In particular we associate to any odd prime number e the following exponent-e RSA generator : Algorithm Ke rsa Repeat (N, p, q) ←$ K$ mod(k) Until
The basic assumed security property of the RSA functions is one-wayness, meaning given N, e, y it is hard to compute RSA− N^1 ,e(y). One must be careful to formalize this properly though. The formalization chooses y at random. Definition 10.10 Let Krsa be an RSA generator with associated security parameter k, and let A be an algorithm. We consider the following experiment: Experiment Expo Kwrs-ak ea(A) ((N, e), (N, p, q, d)) ←$ Krsa x ←$ Z∗ N ; y ← xe^ mod N x′^ ←$ A(N, e, y) If x′^ = x then return 1 else return 0 The ow-kea-advantage of A is defined as Advo Kwrs-ak ea(A) = Pr
Expo Kwrs-ak ea(A) = 1
Above, “kea” stands for “known-exponent attack.” We might also allow a chosen-exponent attack, abbreviated “cea,” in which, rather than having the encryption exponent specified by the instance of the problem, one allows the adversary to choose it. The only condition imposed is that the adversary not choose e = 1. Bellare and Rogaway 11 1 , and compute d via the algorithm of Proposition 10 .8. This random-exponent RSA generator, denoted K$ rsa, is detailed below: Algorithm K$ rsa (N, p, q) ←$ K$ mod M ← (p − 1 )(q − 1 ) e ←$ Z∗ M Compute d by running the algorithm of Proposition 10 .8 on inputs M, e Return ((N, e), (N, p, q, d)) In order to speed-up computation of RSAN,e, however, we often like e to be small. To enable this, we begin by setting e to some small prime number like 3 , and then picking the other parameters appropriately. In particular we associate to any odd prime number e the following exponent-e RSA generator : Algorithm Ke rsa Repeat (N, p, q) ←$ K$ mod(k) Until
The basic assumed security property of the RSA functions is one-wayness, meaning given N, e, y it is hard to compute RSA− N^1 ,e(y). One must be careful to formalize this properly though. The formalization chooses y at random. Definition 10.10 Let Krsa be an RSA generator with associated security parameter k, and let A be an algorithm. We consider the following experiment: Experiment Expo Kwrs-ak ea(A) ((N, e), (N, p, q, d)) ←$ Krsa x ←$ Z∗ N ; y ← xe^ mod N x′^ ←$ A(N, e, y) If x′^ = x then return 1 else return 0 The ow-kea-advantage of A is defined as Advo Kwrs-ak ea(A) = Pr [ Expo Kwrs-ak ea(A) = 1 ] . Above, “kea” stands for “known-exponent attack.” We might also allow a chosen-exponent attack, abbreviated “cea,” in which, rather than having the encryption exponent specified by the instance of the problem, one allows the adversary to choose it. The only condition imposed is that the adversary not choose e = 1. ( k ) 1 6
x xe^ mod N easy easy with d hard without d 7 Some known attacks on RSA function
8
13
14
AlgorithmK (( N , e ), ( N , p , q , d )) ←$ K $ rsa Return (( N , e ), ( N , d )) 1 AlgorithmE( N , e )( M ) r ←$ { 0 , 1 } k^0 s ← M || 0 k^1 ⊕ G ( r ) t ← r ⊕ H ( s ) C ←< s || t > e^ mod N Return C 1 AlgorithmD( N , d )( C ) W ← Cd^ mod N Parse W as s || t r ← H ( s ) ⊕ t M ′^ ← s ⊕ G ( r ) Parse M ′^ as M || z If z = 0 k^1 thenReturn C Else return ⊥ G : { 0 , 1 } k^0 → { 0 , 1 } k − k^0 1 H : { 0 , 1 } k − k^0 → { 0 , 1 } k^0 1
If z = 0 k^1 then return M else return ⊥ 15
16
17
18
under K via the symmetric scheme to get a ciphertext Cs, and transmit (Ca, Cs). This is called hybrid encryption. More precisely, hybrid encryption is a transform that given any asymmetric encryption scheme and any symmetric encryption scheme associates to them a new asymmetric encryption scheme: Scheme 8.5 Let AE = (Ka, Ea, Da) be an asymmetric encryption scheme, and let SE = (Ks, Es, Ds) be a stateless symmetric encryption scheme such that Keys(SE) ⊆ Plaintexts(pk) for every pk that might be output by Ka. The hybrid encryption scheme associated to AE, SE is the asymmetric encryption scheme AE = (Ka, E, D) whose key-generation algorithm is the same as that of AE and whose encryption and decryption algorithms are defined as follows: Algorithm Epk (M ) K ←$ Ks^ ; Cs^ ←$ E Ks (M ) If Cs^ = ⊥ then return ⊥ Ca^ ←$ E pka (K) ; C ← (Ca, Cs) Return C Algorithm Dsk (C) Parse C as (Ca, Cs) K ← Da sk (Ca) If K = ⊥ then return ⊥ M ← Ds K (Cs) Return M Under this hybrid encryption scheme, one can (asymmetrically) encrypt any message M that is in the plaintext-space of the underlying symmetric encryption scheme. Hybrid encryption is used for numerous reasons. The principal one is cost. The number-theoretic operations underlying common asymmetric encryption schemes are computationally costly relative to the operations on block ciphers that underly common symmetric encryption schemes. In practice one wants to minimize the amount of data to which these number-theoretic operations are applied. Accord- ingly, rather than encrypt the possibly long message M directly under pk via the given asymmetric scheme, one uses hybrid encryption. The costly number-theoretic operations are thus applied only to data whose length k is fixed and not dependent 12 ASYMMETRIC ENCRYPTION under K via the symmetric scheme to get a ciphertext Cs, and transmit (Ca, Cs). This is called hybrid encryption. More precisely, hybrid encryption is a transform that given any asymmetric encryption scheme and any symmetric encryption scheme associates to them a new asymmetric encryption scheme: Scheme 8.5 Let AE = (Ka, Ea, Da) be an asymmetric encryption scheme, and let SE = (Ks, Es, Ds) be a stateless symmetric encryption scheme such that Keys(SE) ⊆ Plaintexts(pk) for every pk that might be output by Ka. The hybrid encryption scheme associated to AE, SE is the asymmetric encryption scheme AE = (Ka, E, D) whose key-generation algorithm is the same as that of AE and whose encryption and decryption algorithms are defined as follows: Algorithm Epk (M ) K ←$ Ks^ ; Cs^ ←$ E Ks (M ) If Cs^ = ⊥ then return ⊥ Ca^ ←$ E pka (K) ; C ← (Ca, Cs) Return C Algorithm Dsk (C) Parse C as (Ca, Cs) K ← Da sk (Ca) If K = ⊥ then return ⊥ M ← Ds K (Cs) Return M Under this hybrid encryption scheme, one can (asymmetrically) encrypt any message M that is in the plaintext-space of the underlying symmetric encryption scheme. Hybrid encryption is used for numerous reasons. The principal one is cost. The number-theoretic operations underlying common asymmetric encryption schemes are computationally costly relative to the operations on block ciphers that underly common symmetric encryption schemes. In practice one wants to minimize the amount of data to which these number-theoretic operations are applied. Accord- ingly, rather than encrypt the possibly long message M directly under pk via the given asymmetric scheme, one uses hybrid encryption. The costly number-theoretic operations are thus applied only to data whose length k is fixed and not dependent on the length of M. 2 ASYMMETRIC ENCRYPTION nder K via the symmetric scheme to get a ciphertext Cs, and transmit (Ca, Cs). his is called hybrid encryption. More precisely, hybrid encryption is a transform that given any asymmetric ncryption scheme and any symmetric encryption scheme associates to them a new symmetric encryption scheme: cheme 8.5 Let AE = (Ka, Ea, Da) be an asymmetric encryption scheme, and let E = (Ks, Es, Ds) be a stateless symmetric encryption scheme such that Keys(SE) ⊆ laintexts(pk) for every pk that might be output by Ka. The hybrid encryption cheme associated to AE, SE is the asymmetric encryption scheme AE = (Ka, E, D) hose key-generation algorithm is the same as that of AE and whose encryption nd decryption algorithms are defined as follows: Algorithm Epk (M ) K ←$ Ks^ ; Cs^ ←$ E Ks (M ) If Cs^ = ⊥ then return ⊥ Ca^ ←$ E pka (K) ; C ← (Ca, Cs) Return C Algorithm Dsk (C) Parse C as (Ca, Cs) K ← Da sk (Ca) If K = ⊥ then return ⊥ M ← Ds K (Cs) Return M nder this hybrid encryption scheme, one can (asymmetrically) encrypt any message that is in the plaintext-space of the underlying symmetric encryption scheme. ybrid encryption is used for numerous reasons. The principal one is cost. The umber-theoretic operations underlying common asymmetric encryption schemes re computationally costly relative to the operations on block ciphers that underly ommon symmetric encryption schemes. In practice one wants to minimize the mount of data to which these number-theoretic operations are applied. Accord- ngly, rather than encrypt the possibly long message M directly under pk via the iven asymmetric scheme, one uses hybrid encryption. The costly number-theoretic perations are thus applied only to data whose length k is fixed and not dependent
under K via the symmetric scheme to get a ciphertext Cs, and transmit (Ca, Cs). This is called hybrid encryption. More precisely, hybrid encryption is a transform that given any asymmetric encryption scheme and any symmetric encryption scheme associates to them a new asymmetric encryption scheme: Scheme 8.5 Let AE = (Ka, Ea, Da) be an asymmetric encryption scheme, and let SE = (Ks, Es, Ds) be a stateless symmetric encryption scheme such that Keys(SE) ⊆ Plaintexts(pk) for every pk that might be output by Ka. The hybrid encryption scheme associated to AE, SE is the asymmetric encryption scheme AE = (Ka, E, D) whose key-generation algorithm is the same as that of AE and whose encryption and decryption algorithms are defined as follows: Algorithm Epk (M ) K ←$ Ks^ ; Cs^ ←$ E Ks (M ) If Cs^ = ⊥ then return ⊥ Ca^ ←$ E pka (K) ; C ← (Ca, Cs) Return C Algorithm Dsk (C) Parse C as (Ca, Cs) K ← Da sk (Ca) If K = ⊥ then return ⊥ M ← D Ks (Cs) Return M Under this hybrid encryption scheme, one can (asymmetrically) encrypt any message M that is in the plaintext-space of the underlying symmetric encryption scheme. Hybrid encryption is used for numerous reasons. The principal one is cost. The number-theoretic operations underlying common asymmetric encryption schemes are computationally costly relative to the operations on block ciphers that underly common symmetric encryption schemes. In practice one wants to minimize the amount of data to which these number-theoretic operations are applied. Accord- ingly, rather than encrypt the possibly long message M directly under pk via the given asymmetric scheme, one uses hybrid encryption. The costly number-theoretic operations are thus applied only to data whose length k is fixed and not dependent on the length of M. 19
under K via the symmetric scheme to get a ciphertext Cs, and transmit (Ca, Cs). This is called hybrid encryption. More precisely, hybrid encryption is a transform that given any asymmetric encryption scheme and any symmetric encryption scheme associates to them a new asymmetric encryption scheme: Scheme 8.5 Let AE = (Ka, Ea, Da) be an asymmetric encryption scheme, and let SE = (Ks, Es, Ds) be a stateless symmetric encryption scheme such that Keys(SE) ⊆ Plaintexts(pk) for every pk that might be output by Ka. The hybrid encryption scheme associated to AE, SE is the asymmetric encryption scheme AE = (Ka, E, D) whose key-generation algorithm is the same as that of AE and whose encryption and decryption algorithms are defined as follows: Algorithm Epk (M ) K ←$ Ks^ ; Cs^ ←$ Es K (M ) If Cs^ = ⊥ then return ⊥ Ca^ ←$ E pka (K) ; C ← (Ca, Cs) Return C Algorithm Dsk (C) Parse C as (Ca, Cs) K ← Da sk (Ca) If K = ⊥ then return ⊥ M ← D Ks (Cs) Return M Under this hybrid encryption scheme, one can (asymmetrically) encrypt any message M that is in the plaintext-space of the underlying symmetric encryption scheme. Hybrid encryption is used for numerous reasons. The principal one is cost. The number-theoretic operations underlying common asymmetric encryption schemes are computationally costly relative to the operations on block ciphers that underly common symmetric encryption schemes. In practice one wants to minimize the amount of data to which these number-theoretic operations are applied. Accord- ingly, rather than encrypt the possibly long message M directly under pk via the given asymmetric scheme, one uses hybrid encryption. The costly number-theoretic operations are thus applied only to data whose length k is fixed and not dependent 12 ASYMMETRIC ENC under K via the symmetric scheme to get a ciphertext Cs, and transmit This is called hybrid encryption. More precisely, hybrid encryption is a transform that given any as encryption scheme and any symmetric encryption scheme associates to th asymmetric encryption scheme: Scheme 8.5 Let AE = (Ka, Ea, Da) be an asymmetric encryption schem SE = (Ks, Es, Ds) be a stateless symmetric encryption scheme such that K Plaintexts(pk) for every pk that might be output by Ka. The hybrid e scheme associated to AE, SE is the asymmetric encryption scheme AE = whose key-generation algorithm is the same as that of AE and whose e and decryption algorithms are defined as follows: Algorithm Epk (M ) K ←$ Ks^ ; Cs^ ←$ E Ks (M ) If Cs^ = ⊥ then return ⊥ Ca^ ←$ E pka (K) ; C ← (Ca, Cs) Return C Algorithm Dsk (C) Parse C as (Ca, Cs) K ← Da sk (Ca) If K = ⊥ then return ⊥ M ← D Ks (Cs) Return M Under this hybrid encryption scheme, one can (asymmetrically) encrypt an M that is in the plaintext-space of the underlying symmetric encryption Hybrid encryption is used for numerous reasons. The principal one is number-theoretic operations underlying common asymmetric encryptio are computationally costly relative to the operations on block ciphers tha common symmetric encryption schemes. In practice one wants to min amount of data to which these number-theoretic operations are applied ingly, rather than encrypt the possibly long message M directly under p given asymmetric scheme, one uses hybrid encryption. The costly number operations are thus applied only to data whose length k is fixed and not 12 ASYMMETRIC ENCRYPTION under K via the symmetric scheme to get a ciphertext Cs, and transmit (Ca, Cs). This is called hybrid encryption. More precisely, hybrid encryption is a transform that given any asymmetric encryption scheme and any symmetric encryption scheme associates to them a new asymmetric encryption scheme: Scheme 8.5 Let AE = (Ka, Ea, Da) be an asymmetric encryption scheme, and let SE = (Ks, Es, Ds) be a stateless symmetric encryption scheme such that Keys(SE) ⊆ Plaintexts(pk) for every pk that might be output by Ka. The hybrid encryption scheme associated to AE, SE is the asymmetric encryption scheme AE = (Ka, E, D) whose key-generation algorithm is the same as that of AE and whose encryption and decryption algorithms are defined as follows: Algorithm Epk (M ) K ←$ Ks^ ; Cs^ ←$ E Ks (M ) If Cs^ = ⊥ then return ⊥ Ca^ ←$ E pka (K) ; C ← (Ca, Cs) Return C Algorithm Dsk (C) Parse C as (Ca, Cs) K ← D sak (Ca) If K = ⊥ then return ⊥ M ← Ds K (Cs) Return M Under this hybrid encryption scheme, one can (asymmetrically) encrypt any message M that is in the plaintext-space of the underlying symmetric encryption scheme. Hybrid encryption is used for numerous reasons. The principal one is cost. The number-theoretic operations underlying common asymmetric encryption schemes are computationally costly relative to the operations on block ciphers that underly common symmetric encryption schemes. In practice one wants to minimize the amount of data to which these number-theoretic operations are applied. Accord- ingly, rather than encrypt the possibly long message M directly under pk via the given asymmetric scheme, one uses hybrid encryption. The costly number-theoretic operations are thus applied only to data whose length k is fixed and not dependent 20