Docsity

Overview of Cryptographic Tools for Data Security, Study notes of Cryptography and System Security

Partial preview of the text

Download Overview of Cryptographic Tools for Data Security and more Study notes Cryptography and System Security in PDF only on Docsity!

UT DALLASUT DALLAS

Erik Jonsson School of Engineering & Computer Science

engineering

Purdue University

Pag. 1

Overview of Cryptographic Tools

for Data Security

Murat Kantarcioglu

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.

F

K, x

(K

1

,... K

Nr

)^

Ks

(K

w

0

x

w

i^

g

(w

i−

1

, K

i−

1

)for

N r

i

Return

w

Nr

engineering Inverting an Iterated Block Cipher •^

Since function g is invertible. We can easilydecipher the output of an iterated cipher^ F

−

1

(K, y

(K

1

,... K

Nr

)^

Ks

(K

w

Nr

y

w

i−

1

g

−

1

(w

i, K

i) for

N r > i

Return

w

0

engineering Overview of AES •^

AES has

128 bits block

size

•^

AES has

three allowable

key sizes

|K|={128,192,256}
•^

AES has variable number of rounds^ – If |K|=

then

Nr=

  • If |K|=

then

Nr=

  • If |K|=

then

Nr=

engineering Block Ciphers •^

Block length is fixed (

n

-bit)

•^

How to encrypt large messages?^ – Partition into

n

-bit blocks

  • Choose mode of operation
    • Electronic Codebook (ECB),• Cipher-Block Chaining (CBC),• Cipher Feedback (CFB),• Output Feedback (OFB),• Counter (CTR)
•^

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

-^

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

Cipher-Block Chaining (CBC) •^

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

Cipher-Block Chaining (CBC)

•^

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

  • if the message digest is transmitted securely, then

changes to the message can be detected

•^

A hash is a many-to-one function, so

collisions

can happen.

engineering

Uses of hash functions •^

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.