Docsity

Block Ciphers: Principles and Design at Florida State University, Study notes of Computer Science

Toggle sidebar
bg1
1
Florida State University
Block Ciphers
Breno de Medeiros
Florida State University
Block Ciphers
• Block ciphers operate by splitting the
(binary string representation of the)
plaintext into fixed-size blocks, and
encrypting one block at a time.
• For a fixed key, the block cipher
encryption is a simple substitution
cipher over a VERY large alphabet.
– Typical block sizes: 64 or 128 bits.
Florida State University
Block cipher operation
Block Cipher
Key
1 100101110100011
ith block
of plaintext
0 010000101101110
ith block of
ciphertext
Each block
may be seen
as a single
character for
a substitution
cipher. The
number of
distinct chars.
= # of distinct
blocks
= 2block length
pf3
pf4
pf5

Partial preview of the text

Download Block Ciphers: Principles and Design at Florida State University and more Study notes Computer Science in PDF only on Docsity!

Florida State University

Block Ciphers

Breno de Medeiros

Florida State University

Block Ciphers

  • Block ciphers operate by splitting the

(binary string representation of the)

plaintext into fixed-size blocks, and

encrypting one block at a time.

  • For a fixed key, the block cipher

encryption is a simple substitution

cipher over a VERY large alphabet.

  • Typical block sizes: 64 or 128 bits. Florida State University

Block cipher operation

Key Block Cipher i 110001011101001 1 th (^) block of plaintext i 011101101000010 0 th (^) block of ciphertext Each block may be seen as a single character for a substitution cipher. The number of distinct chars. = # of distinct blocks = 2block length

Florida State University

Block cipher terminology

  • Blocksize: The length of a block in bits.
    • Both size of plaintext and ciphertext blocks.
  • Key length: Length of the key in bits.
  • Keyspace K : The set of valid key values.
  • Effective key length:
    • Let | K | the number of valid keys.
    • Then t = log 2 | K | is the effective key length. Florida State University

Example: DES

  • DES operates on 8-byte data chunks. Therefore the blocksize is 64 bits.
  • DES Keyspace K :
    • 64-bit binary strings such that each 8-th bit chunk has even parity:
  • Effective key length is 56: 2^56 possible keys, determined by eight 7-bit chunks.

Florida State University

Block cipher properties

  • The encryption operation is invertible:
    • Each key K determines a PERMUTATION on the block “space”.
  • For a block of n bits, there are:
    • 2 n^ blocks, (2n)! possible permutations
    • at most (2n)! possible keys, or effective key length at most log 2 [(2n)!] ≈ n2n^ (!!!!)
    • In practice, MUCH smaller keyspace and shorter keys.

Florida State University

Substitution and Permutation

  • For good diffusion properties to exist,

the cipher has to employ shuffling or re-

ordering of bits (permutation operations).

  • Confusion refers to the property that the

ciphertext (and its statistical properties)

is not easily relatable to the key.

  • Key must involve non-linear substitution algorithms. Florida State University

Feistel Cipher

  • The Feistel network design combines permutations and substitutions effectively.
  • The parameters of a Feistel cipher are: - The block size. - The round function F, and corresponding key size. - The key schedule, or subkey generation algorithm. - The number of rounds. - Usually, there is an initial permutation (not shown). Florida State University

Decryption

  • The decryption

algorithm of a

Feistel cipher

equals its encryp-

tion algorithm

with a reversed

key schedule.

Florida State University

Example: DES

  • DES defines 3 fixed (key independent) permutations: - Initial permutation IP, applied to plaintext before and after the Feistel network - Permuted choices 1, 2 (and per-round shift amounts) for the key schedule.
  • Each DES round is a pure Feistel cipher round. Florida State University

Initial permutation

Florida State University

A DES ROUND

Florida State University