Bài giảng Computer Networks 1 (Mạng máy tính 1) - Lecture 11: Network Security - Phạm Trần Vũ
Lecture 11:
Network Security
Reference:
Chapter 8 - “Computer Networks”,
Hall, 2003.
2
Outline
ꢀ
Cryptography
ꢁ
ꢁ
ꢁ
ꢁ
ꢁ
Introduction
Symmetric-key algorithms
Public-key algorithms
Digital Signatures
Management of Public Keys
ꢀ
Apply to Computer Networks
ꢁ
ꢁ
ꢁ
ꢁ
Secure So
E-mail security
Web Security
3
Outline
ꢀ
Cryptography
ꢁ
ꢁ
ꢁ
ꢁ
ꢁ
Introduction
Symmetric-key algorithms
Public-key algorithms
Digital Signatures
Management of Public Keys
4
Crytography (2)
• Symmetric-key algorithms
– Encryption and decryption
functions that use the same
key are called symmetric
Encrypt
– In this case everyone wanting
to read encrypted data must
share the same key
– DES is an example of
symmetric-key algorithms
Decrypt
6
Crytography (4)
ꢀ Advanced Encryption Standard(AES)
ꢁ
Rules for AES proposals
1. The algorithm must be a symmetric block cipher.
2. The full des
3. Key lengths of 128, 192, and 256 bits supported.
nondiscriminatory terms.
8
Crytography (6)
ꢀ
Public-Key Algorithms
ꢁ
ꢁ
ꢁ
So is called Asymmetric-key Algorithms
Based on some hard problems such as integer factoring, …
When data yiother key must be
used to decrypt the data, and vice versa.
ꢁ
key
Public key is
Priva
given away to
known only to
the world
owner
10
Crytography (7)
ꢀ
RSA(Rivest, Shamir, Adleman)
ꢁ
Choose two large primes, p and q (typically 1024 bits).
Compute n = p x q and z = (p - 1) x (q - 1).
Choose a number relatively prime to z and call it d.
Find e such that e x d = 1 mod z.
Pair key: {(e, n), (d,n)}
ꢁ
ꢁ
ꢁ
ꢁ
ꢁ
Example
ꢀ
p = 3, q = 11 -> n = 33, z = 20
Choose
ꢀ
ꢀ
e = 3
11
Crytography (9)
ꢀ
Digital Signatures
ꢁ
Digital signatures allow the world
to verify I created a hunk of data
ꢁ
ꢁ
e.g. email, code
Sign
ꢀ
Digital signatures are created by
encrypting a hash of the data with
my private key
Encrypt
ꢀ
ꢀ
The resulting encrypted data is the
signature
This hash can then only be
decrypted by my public key
13
Crytography (10)
ꢀ
Digital Signatures
ꢁ
Verify
ꢀ
Given some data with my signature, if you decrypt a
signaturash of the data,
you know it was encrypted with my private key
Hash
=?
Decrypt
14
Crytography (12)
• Management of Public keys
– By checking the signature, one can determine that a
public key belongs to a given user.
Hash
Subject
Public Key
Issuer
=?
Decrypt
Signature
Public Key from
Issuer
16
Outline
ꢀ
Apply to Computer Networks
ꢁ
Terms
ꢀ
ꢀ
ꢀ
Authentication
Authorization
Message Protection
ꢁ
ꢁ
ꢁ
Secure Sockets Layer (SSL)
E-mail security
Web Security
18
Apply to Computer Networks(1)
• Authentication
– Verification of identity.
– Many mechanisms exist:
• Username/password
• Kerberos
• Public key Cryptography
19
Tải về để xem bản đầy đủ
Bạn đang xem 20 trang mẫu của tài liệu "Bài giảng Computer Networks 1 (Mạng máy tính 1) - Lecture 11: Network Security - Phạm Trần Vũ", để tải tài liệu gốc về máy hãy click vào nút Download ở trên
File đính kèm:
bai_giang_computer_networks_1_mang_may_tinh_1_lecture_11_net.pdf

