SlideServe
Menu
Préférences
© SlideServe · v2026

CIS 5371 Cryptography

hector avatar
28 diapositives · 527 Views · Aug 14, 2014

CIS 5371 Cryptography. 3c. Pseudorandom Functions B ased on: Jonathan Katz and Yehuda Lindell Introduction to Modern Cryptography. Definition. Definition 3.23. Let F be an efficient length preserving keyed function. F is a pseudorandom function if

CIS 5371 Cryptography - slide 1
01 / 28CIS 5371 Cryptography
1 / 17

Télécharger la présentation

CIS 5371 Cryptography
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. CIS 5371 Cryptography 3c. Pseudorandom Functions Based on: Jonathan Katz and Yehuda LindellIntroduction to Modern Cryptography

  2. Definition .

  3. Definition 3.23 • Let F be an efficient length preserving keyed function. F is a pseudorandom function if  PPT distinguishers D,  a negl function such that | where is chosen uniformly at random and f is chosen at random from the set of all functions mapping n-bit strings to n-bit strings.

  4. A secure fixed length encryption scheme

  5. Existence of pseudorandom functions • We cannot prove that pseudorandom functions exist! • In practice there exist very efficient primitives called block ciphers that are widely believed to behave as pseudorandom functions.

  6. CPA secure encryption using PRFProtocol  • Let be a pseudorandom function. Define a • private-key encryption scheme for messages of • length as follows: • Gen: on input choose  uniformly at • random and output as key. • Enc:on input a key and a message • m, choose choose  uniformly at • random and output the ciphertext • Dec:on input a key and a ciphertext • output the plaintext

  7. Theorem 3.25 Let be a pseudorandom function. Then protocol  is a fixed-length private-key encryption scheme for messages of length n that has indistinguishable encryptions under CPA.

  8. A secure fixed length encryption Proof Then,

  9. A secure fixed length encryption Proof We have, . Let  . Then =+ . If  is negligible then we should not be able to distinguish these. Otherwise a gap between them would make it possible to distinguish truly random from pseudorandom.

  10. A secure fixed length encryption Reduction Distinguisher D with oracle O:  Adversary A with Protocol  or , O Query encryption oracle to get encryptions of chosen plaintexts Choose  uniformly at random Query O to get Repeat: Query to get encryptions of chosen plaintexts choose a random bit Query O to get return 1 if 0 if

  11. A secure fixed length encryption Proof From,  and we get that must be negligible. So is negligible.

  12. A secure variable length encryption The messages can be securely encrypted as .

  13. Corollary 3.26 Let be a pseudorandom function. Then the scheme sketched in the previous slide is an arbitrarylength private-key encryption scheme that has indistinguishable encryptions under CPA.

  14. Pseudorandom permutations • one-to-one • A efficient if there is a • polynomial-time algorithm that will compute given and . • A pseudorandom permutation is defined in a • manner analogous to Definition 3.23, by replacing the term “function” by “permutation”.

  15. Definition 3.28Strong Pseudorandom permutations • Let F be an efficient keyed permutation. We say that is a strong pseudorandom permutation if,  PPT distinguishers D,  a negl function such that | where is chosen uniformly at random and f is chosen at random from the set of all permutations on n-bit strings. • The analogue for strong pseudorandom permutations are block ciphers.

  16. Pseudorandom permutationsmodes of operation Electronic Code Book (ECB) Cipher Block Chaining (CBC) Output Feedback (OFB) Counter(CTR)

  17. Pseudorandom permutations Electronic Code Book (ECB)

  18. Pseudorandom permutations    IV IV Cipher Block Chaining (CBC)

  19. Pseudorandom permutations IV    IV Output Feedback (OFB)

  20. Pseudorandom permutations ctr ctr+1 ctr+2 ctr+3    Counter mode (CTR) ctr

  21. Pseudorandom permutationsmodes of operation Electronic Code Book (ECB)  Encryption is deterministic : no CPA-security Worse: ECB-mode does not have indistinguishable encryptions in the presence of an eavesdropper.

  22. Pseudorandom permutationsmodes of operation Cipher Block Chaining (CBC) . Encryption is probabilistic: it can been shown that we get CPA-security if is a pseudorandom permutation. Drawback: encryption is sequential.

  23. Pseudorandom permutationsmodes of operation Output Feedback (OFB) , . Encryption is probabilistic: it can been shown that we get CPA-security if is a pseudorandom permutation. Drawback: both encryption and encryption are sequential.

  24. Pseudorandom permutationsmodes of operation Counter(CTR) -- randomized counter mode , , Encryption is probabilistic: it can been shown that we get CPA-security if is a pseudorandom function. Both encryption and encryption can be fully parallelized. We do not require that is a permutation (that is, it need not be invertible).

  25. Chosen Ciphertext Attacks (CCA) In a CCA the adversary not only can encrypt messages of his choice (CPA) but also can decrypt ciphertexts of his choice (with one exception). Formally this is captured by giving the adversary access to a decryption oracle (as well as the encryption oracle). Let  be a private-key encryption scheme, an adversary and the value of the security parameter.

  26. CCA indistinguishability experiment  • A • The adversary on the challenge ciphertext itself. Eventually

  27. Indistinguishable encryptions under CCA --Definition A private-key encryption scheme  has indistinguishable encryptions under CCAif ∀ PPT adversaries , =1] where the probabilities is taken over the coins used in the experiment.

  28. Insecurity of the encryption schemes that we have studied All the earlier discussed private-key encryption schemes are not CCA-secure Example. Let and , to get the ciphertext. The adversary flips the first bit of and asks for the decryption. He gets either () or (. A similar type of chosen ciphertext attack applies to all the others.