INFS2052 lecture 3.2

Network Security ­ encryption

References

Garfinkel and Spafford, Web Security and Commerce, chap. 11, O'Reilly 1997

Roger Clarke - many papers, including Data Transmission Security (or Cryptography in Plain Text)

Tanenbaum 3rd edition section 7.1

Attacks

The effect of attacks on computer networks include:

  • misappropriation or loss of information or resources
  • destruction of information
  • destruction of resources
  • corruption and modification of information
  • disclosure of information
  • interruption of services
  • Tanenbaum fig 7.1Some people who cause security problems and why.

    Methods of attack include:

  • interception
  • masquerade
  • replay
  • changing of contents
  • denial of service
  • attacks from within system (users)
  • programs: trapdoors, trojan horses, viruses
  • Network Security needs

  • confidentiality of transmitted data
  • integrity of transmitted data
  • authentication of sender and receiver
  • non-repudiation of messages by sender and receiver
  • Confidential transmission, with integrity

    Based on encrypting messages.

    Key-based cryptography

    uses a key and a known method (algorithm)
    either or both may be supplied as software or hardware

  • hidden key same key known to sender and receiver
  • public key matches a private key known only to receiver
  • Historical methods used private keys, simple algorithms.

    Modern methods use very complex algorithms.

    examples of keys

  • hardware key: metal, magnetic, digital (smart card) key
  • software key: password-like value
  • algorithms:

  • DES (Data Encryption Standard)
  • RSA
  • used in hybrid methods such as

  • PGP - Pretty Good Privacy
  • Illustration - fig 10-1 Garfinkel and Spafford

    A simple example of encryption and decryption

    Strength of an encryption scheme

    All encryption schemes can be attacked by cryptographic techniques, ranging from brute force (try every possible key) to subtlety.

    The strength of an encryption scheme is a measure of how good it is in resisting attacks.

    Strength depends on:

  • secrecy of the key
  • difficulty of guessing the key
  • difficultly of trying all possible keys
  • difficulty of inverting the algorithm without knowing the key
  • existence of back doors in the scheme
  • difficulty of attack by knowing all of a plaintext and encryption for some other message (plaintext attack)
  • difficulty of attack by knowing part of plaintext for the message
  • Garfinkel and Spafford p. 195

    Security requires that encrypted messages be difficult to break.

    Breaking security is possible with sufficient computing resources and sufficient data:
    the aim is to make a scheme sufficiently strong at acceptable cost:
    i.e. difficult to break, and acceptably easy to encrypt and decrypt.

    Illustration: Garfinkel and Spafford fig. 10-2 Key search attack.

    Encrypted message transmission

    Sender transmits an encrypted message C derived by encrypting method Emethod from plain message P and encrypting key Ekey

    C = Emethod ( P, Ekey )

    Receiver decodes the message (with a possibly different method and possibly different key)

    P' = Dmethod ( C, Dkey )

    With correct use of keys and methods P' = P

    Security may be based on

  • rapidly changing key values
    - so that interceptor has little data to work on with a particular key;
  • methods that make the keys and inverse relationship hard to determine, given only C
    (or even if intruder has intercepted and found some examples of corresponding C and P, if parties have been careless).
  • Private keys: - methods have straightforward inversion relationship, one (hidden) key is known to both parties.

    Public key:- encryption is by a trapdoor function such that even knowledge of the encryption key, plus the encrypted message, and both methods, does not permit easy decryption.
    Only the decryption key need be kept hidden (by the receiver);
    the receiver can publish the encryption key for all senders to use.

    Use of public keys of both sender and receiver can also be the basis of general authentication (see later).

    Strength is generally increased by having larger key,
    and with algorithm that distributes the effect of small differences in the key across large amounts of the message.

    Principles of Data Encryption Standard

    DES (Data Encryption Standard) Algorithm is widespread in USA
    (prohibited export but re-implemented outside USA).

    Dates from 1977 - IBM plus NSA.

    Tanenbaum fig 7-5 The data encryption standard

    Public key encryption - Trapdoor functions

    A public key encryption system has these properties

    RSA algorithm [Rivest, Shamir, Adleman: 1978]

    1. choose p and q as prime numbers > 10100 - keep private
    2. compute
    3. the methods for enciphering and deciphering
      are to treat message as a very large precision integer number
      and apply exponentiation to key value, modulo n

    Tanenbaum fig 7-11 An example of the RSA algorithm

    This is a toy example : n=33, Ekey=3, Dkey=7, blocksize = 1 character

    (additional comments on blocks of characters, lengths of codes etc. not included in overhead notes)

  • transmit private keys for a session using faster private key encryption
  • attach digital signatures for authentication

  • Lecture Notes Index Lecture 12 Lecture 10

    Last modified: Tue Mar 30 11:27:10 EST 1999
    Queries to : infs2052@iwaki.anu.edu.au