Docsity

Computer Security: Principles and Techniques - Lecture 3, Study notes of Computer Science

Partial preview of the text

Download Computer Security: Principles and Techniques - Lecture 3 and more Study notes Computer Science in PDF only on Docsity!

CSE543 Computer (and Network) Security - Fall 2007 - Professor Jaeger

CSE 543 - Computer Security

Lecture 3 - Principles

September 4, 2007

URL: http://www.cse.psu.edu/~tjaeger/cse543-f07/

1

Data Encryption Standard (DES)

  • Introduced by the US NBS (now NIST) in 1972
  • Signaled the beginning of the modern area of cryptography
  • Block cipher
    • Fixed sized input
  • 8-byte input and a 8-byte key (56-bits+8 parity bits)

Variants of DES

  • DESX (XOR with separate keys ~= 60-bits)
    • Linear cryptanalysis
  • Triple DES (three keys ~= 112-bits)
    • keys k1, k2, k
      • c = E( D( E( p, k1), k2), k3) E D E k

k

k

p c

Advanced Encryption Standard (AES)

  • Result of international NIST bakeoff between cryptographers - Intended as replacement for DES - Rijndael (pronounced “Rhine-dall”) - Currently implemented in many devices and software, but not yet fully embraced - Cryptography community is actively vetting the the theory and implementations (stay tuned)

How do you use such cryptosystems?

  • Can’t use a secret by myself

Needham and Schroeder

  • This is where they come in
    • Symmetric and public key systems are being invented (DES, Diffie-Hellman, RSA)
    • Network computation is somewhat common
    • Want to setup a general approach to secure network communication

Trusted Third Party

  • Authentication Server
  • What is it entrusted to do?
    • Maintains a database of keys for each principal
      • KAS where A is the principal and S is the authentication server
    • Generate information necessary for principal A to initiate a communication with principal B - A --> AS: A, B, IA - AS --> A: {IA, B, KAB, {KAB, A}KBS}KAS - A --> B: {KAB, A}KBS - B --> A: {IB}KAB - A --> B: {IB - 1}KAB

What Do The Messages Mean?

  • First and Second Messages
    • A --> AS: A, B, IA
    • AS --> A: {IA, B, KAB, {KAB, A}KBS}KAS
    • A --> B: {KAB, A}KBS
    • B --> A: {IB}KAB
    • A --> B: {IB - 1}KAB
  • A asks to communicate with B
  • AS provides A with the basis to set it up
    • Session key: KAB
    • Ticket: {KAB, A}KBS
    • Protected by the key that is shared between A and the

server: KAS

  • Why is it OK for the first message to be ‘in the clear’?

What do the messages mean?

  • Fourth and Fifth Messages
    • A --> AS: A, B, IA
    • AS --> A: {IA, B, KAB, {KAB, A}KBS}KAS
    • A --> B: {KAB, A}KBS
    • B --> A: {IB}KAB
    • A --> B: {IB - 1}KAB
  • A and B now have the key: KAB
  • They need to prove that they can really use it
    • Why does A believe that B really has the key?
    • Why does B believe that A really has the key?

Other Protocols

  • Public key: discuss next week
  • One-way communication

Trustworthiness

  • How do you ensure their trustworthiness?
  • Do you need to do anything on the clients to ensure the security of the protocol?

Alternatives

  • Can you devise a shorter protocol?
    • with the same properties
    • or slightly weaker, but perhaps useful properties