QMCS 490 - Class Today - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

QMCS 490 - Class Today

Description:

One Approach: CBC. Kind of Rube Goldberg-ish ... under the Creative Commons Attribution-Share Alike 3.0 United States License. To view a copy of this license, ... – PowerPoint PPT presentation

Number of Views:27
Avg rating:3.0/5.0
Slides: 13
Provided by: ricks6
Category:
Tags: qmcs | class | license | today

less

Transcript and Presenter's Notes

Title: QMCS 490 - Class Today


1
QMCS 490 - Class Today
  • Finish the other presentation
  • Cipher Modes

2
Straight Crypto
  • Just apply the key to the plaintext
  • Block after block after block

3
Penguin using Straight Crypto
  • BEFORE
  • AFTER

4
What We Want
  • BEFORE
  • AFTER

5
One Approach CBC
  • Kind of Rube Goldberg-ish
  • Each block of plaintext is mixed with the
    previous block of ciphertext before encryption
  • The initialization vector

6
CBC Decryption
  • Start with the initialization vector (IV)
  • XOR with decrypted ciphertext to yield plaintext
  • Error extension - how do errors propagate?
  • Can we mix and match blocks?

7
Another Idea Autokey (OFB)
  • The key stream is independent of the data stream
  • Sort of like a stream cipher - can work bit by
    bit
  • Requires an IV to start things up

8
OFB Decryption
  • Basically identical to the encryption operation
  • Start with the initialization vector (IV)
  • Generates the exact same key stream

9
Yet Another Counter Mode (CTR)
  • Like OFB, but uses a counter instead of chaining
  • Nonce is a random data value counter
    increments
  • Like OFB, simple XOR to encrypt

10
CTR Decryption
  • Basically identical to the encryption operation
  • Start with the initialization vector (IV)
  • Generates the exact same key stream

11
In Class group exercise
  • Four groups, 4 problems
  • What if you swap two blocks in CBC?
  • What if the ciphertext flips 1 bit in CBC?
  • What if you swap two blocks in CTR?
  • What if the ciphertext flips 1 bit in CTR?

12
Thats it
  • Questions?
  • The images all came from the Wikipedia entry on
    Block Cipher Modes
  • The Penguin image was produced by
    lewing_at_isc.tamu.edu and The GIMP if someone asks.
  • Creative Commons License
  • This work is licensed under the Creative Commons
    Attribution-Share Alike 3.0 United States
    License. To view a copy of this license, visit
    http//creativecommons.org/licenses/by-sa/3.0/us/
    or send a letter to Creative Commons, 171 Second
    Street, Suite 300, San Francisco, California,
    94105, USA.
Write a Comment
User Comments (0)
About PowerShow.com