









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!










n bits
m bits
k bits
Block vs. stream ciphers
memory
M 1 , M 2 , …, Mn m 1 , m 2 , …, mn
C 1 , C 2 , …, Cn c 1 , c 2 , …, cn
Every block of ciphertext is a function of only one corresponding block of plaintext
Every block of ciphertext is a function of the current and all proceeding blocks of plaintext
Substitution Cipher
a b c d e f g h i j k l m n o p q r s t u v w x y z f q i s h n c v j t y a u w d r e x l b m z o g k p
Definition of a cryptosystem (cipher)
family of enciphering transformations
family of deciphering transformations
enciphering transformation EK(M)
deciphering transformation DK(C)
Key Distribution Problem
N - Users N · (N-1) 2
Keys
Users Keys
100 5, 1000 500,
Digital Signature Problem
Public Key (Asymmetric) Cryptosystems
Network
Encryption Decryption
Classification of cryptosystems Terminology
secret-key
symmetric
symmetric-key
classical
conventional
public key
asymmetric
One-way function
where P and A are constants, P is a large prime, A is an integer smaller than P
Number of bits of P Average number of multiplications necessary to compute f f - 1000 1500 1030
Trap-door one-way function
Message
Hash function
Public key cipher
Signature
Alice’s private key
Hash function
Alice’s public key
Non-repudiation
Hash value 1
Hash value 2
Hash value
Public key cipher
yes no
Message Signature
Hash function
arbitrary length
message
hash function
h(m) hash value
h
m
fixed length
Hash functions Basic requirements
arbitrary length input → fixed length output
Hash functions Security requirements
Message
Hash function
Public key cipher
Signature
Alice’s private key
Hash function
Alice’s public key
Non-repudiation
Hash value 1
Hash value 2
Hash value
Public key cipher
yes/no
Message Signature
Message
Hash function
Public key cipher
Signature
Alice’s private key
Hash function
Alice’s public key
Non-repudiation
Hash value 1
Hash value 2
Hash value
Public key cipher
yes/no
Message Signature
Signature generation function
Signature verification function
MAC functions Security requirements
CBC-MAC (Cipher Block Chaining MAC)
Secret-key cipher
Secret-key cipher
Secret-key cipher
Relations among security services
Message
Hash function
Public key cipher
Signature
Alice’s private key
Hash function
Alice’s public key
Non-repudiation
Hash value 1
Hash value 2
Hash value
Public key cipher
yes no
Message Signature
Message
Secret key algorithm
MAC
Secret key of Alice and Bob
Secret key algorithm
Authentication
MAC’
MAC
yes no
Message MAC
Secret key of Alice and Bob
Hybrid Systems
Average Decryption Speed
≈ (^100) ≈ 1000
Basic operations of secret key ciphers - S-box
S-box n x m
Software Hardware
C
WORD S[1<<n]= { 0x23, 0x34, 0x
.............. }
S DW 23H, 34H, 56H … ..
direct logic
n
m
2 n^ words
n- bit address
m- bit output
x x (^12) ...
xn
...^ y y^12 ym
S
Substitution
Permutation
C
order of wires
P
Software Hardware
ASM
sequence of instructions <<, |, &
sequence of instructions ROL, OR, AND
n
n
x 1 x 2 x 3 x n -1x n
...
y 1 y 2 y 3 y n -1y n
Basic operations of secret key ciphers - P-box
P-box n x n
Basic Operations of the Public Key Cryptosystem RSA
Encryption
Decryption
ciphertext (^) = plaintext (^) mod public key modulus
public key exponent
ciphertext = plaintext mod private key modulus
private key exponent
k -bits k -bits k -bits
k -bits k -bits^ k -bits
session key ( random secret-key )
Bob’s public key
Hybrid Systems
Bob’s private key
Session key encrypted using Bob’ s public key
Message encrypted using session key
Hybrid Systems - Sender’s Side (2)
session key random
Bob’s public key
message
Secret key cipher
Public key cipher
Session key encrypted using Bob’ s public key
Message encrypted using session key
Classification of attacks (2)
Known plaintext attack
cipher
Classification of attacks (3)
Chosen plaintext attack
Encryption module (^) key
Encryption module (^) key
Mi Mi*
Ci Ci
i=1..N
Classification of attacks (4)
Chosen ciphertext attack
Encryption module (^) key