































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!
































UT DALLASUT DALLAS
Erik Jonsson School of Engineering & Computer Science
engineering
Purdue University
Pag. 1
engineering Cryptographic Primitives •^
We will
discuss
the following
primitives
in this
course^ – Symmetric Encryption– Message Authentication– Public Key Cryptography– Digital Signatures– Pseudo-random Number Generators
engineering Iterated Block Cipher •^
Requires the specification of an invertibleround function
g
and key schedule function
Ks
and Number of rounds
Nr.
1
Nr
0
i^
i−
1
i−
1
Nr
engineering Inverting an Iterated Block Cipher •^
−
1
1
Nr
Nr
i−
1
−
1
0
engineering Overview of AES •^
AES has
128 bits block
size
AES has
three allowable
key sizes
AES has variable number of rounds^ – If |K|=
then
Nr=
then
Nr=
then
Nr=
engineering Block Ciphers •^
Block length is fixed (
n
-bit)
How to encrypt large messages?^ – Partition into
n
-bit blocks
Padding schemes
engineering Notation •^
Message
x
consists of plaintext blocks of size
n^ –
x = x
1
|| x
2
|| … || x
t
Ciphertext of plaintext block
x
denoted as i
c
i
Chaining requires an initialization vector thatfirst plaintext block
x
1
will depend on.
Initialization vector denoted as
-^
IV
should be selected randomly for each message ( x
)
engineering Electronic Codebook (ECB) •^
Each block encrypted independently
-^
Identical plaintexts encrypted similarly
-^
No chaining, no error propagation
Plaintext Block CipherEncryption Ciphertext
Key
Plaintext Block CipherEncryption Ciphertext
Key
engineering
Allows random access to ciphertext
-^
Decryption is parallelizable^ – Plaintext block x
requires ciphertext blocks cj
andj
cj-
Plaintext Block CipherEncryption Ciphertext
Initialization Vector (IV)
Plaintext Block CipherEncryption Ciphertext
Key
Key
engineering
Identical messages: changing IV or the firstplaintext block results in different ciphertext
-^
Chaining: Ciphertext block c
depends on xj
andj
all preceding plaintext blocks (dependencycontained in c
j-
Error propagation: Single bit error on c
may flipj
the corresponding bit on x
j+
, but changes x
j
significantly.
-^
IV need not be secret, but its integrity should beprotected
engineering Data Integrity and Source Authentication
-^
Encryption does not protect data from modificationby another party.
-^
Need a way to ensure that data arrives at destinationin its original form as sent by the sender and it iscoming from an authenticated source.
engineering Cryptographic Hash Functions •^
A hash function maps a message of anarbitrary length to a m-bit output^ – output known as the fingerprint or the message
digest
changes to the message can be detected
A hash is a many-to-one function, so
collisions
can happen.
engineering
Message authentication
-^
Software integrity
-^
One-time Passwords
-^
Digital signature
-^
Timestamping
-^
Certificate revocation management
engineering SHA1 (Secure Hash Algorithm)^ •
SHA was designed by NIST and is the USfederal standard for hash functions, specified inFIPS-180 (1993).
-^
SHA-1, revised version of SHA, specified inFIPS-180-1 (1995) use with Secure HashAlgorithm).
-^
It produces 160-bit hash values.
-^
NIST have issued a revision FIPS 180-2 thatadds 3 additional hash algorithms: SHA-256,SHA-384, SHA-512, designed for compatibilitywith increased security provided by AES.