PGP from: Cryptography and Network Security
Fifth Edition by William Stallings Lecture slides by Lawrie Brown(*)
(*) adjusted by Fabrizio d'Amore
PGP from: Cryptography and Network Security Fifth Edition by - - PowerPoint PPT Presentation
PGP from: Cryptography and Network Security Fifth Edition by William Stallings Lecture slides by Lawrie Brown (*) (*) adjusted by Fabrizio d'Amore Electronic Mail Security Despite the refusal of VADM Poindexter and LtCol North to appear, the
(*) adjusted by Fabrizio d'Amore
Despite the refusal of VADM Poindexter and LtCol North to appear, the Board's access to other sources of information filled much of this gap. The FBI provided documents taken from the files of the National Security Advisor and relevant NSC staff members, including messages from the PROF system between VADM Poindexter and LtCol North. The PROF messages were conversations by computer, written at the time events
from disclosure. In this sense, they provide a first-hand, contemporaneous account of events. —The Tower Commission Report to President Reagan on the Iran-Contra Affair, 1987
May 2012 PGP - S/MIME 2
Ø email is one of the most widely used and
Ø currently message contents are not secure
l may be inspected either in transit l or by suitably privileged users on destination
May 2012 PGP - S/MIME 3
Ø confidentiality
l protection from disclosure
Ø authentication
l of sender of message
Ø message integrity
l protection from modification
Ø non-repudiation of origin
l protection from denial by sender
May 2012 PGP - S/MIME 4
Ø widely used de facto secure email Ø developed by Phil Zimmermann Ø selected best available crypto algs to use Ø integrated into a single program Ø on Unix, PC, Macintosh and other systems Ø originally free, now also have commercial
May 2012 PGP - S/MIME 5
May 2012 PGP - S/MIME 6
May 2012 PGP - S/MIME 7
Ø can use both services on same message
l create signature & attach to message l encrypt both message & signature l attach RSA/ElGamal encrypted session key
May 2012 PGP - S/MIME 8
Ø by default PGP compresses message
l so can store uncompressed message &
l because compression is non deterministic
Ø uses ZIP compression algorithm
May 2012 PGP - S/MIME 9
Ø when using PGP will have binary data to send
Ø however email was designed only for text Ø hence PGP must encode raw binary data into
Ø uses radix-64 algorithm (aka "ASCII Armour")
l maps 3 bytes to 4 printable chars (it's the Base64 of
MIME)
l also appends a 24-bit CRC
Ø PGP also segments messages if too big
May 2012 PGP - S/MIME 10
May 2012 PGP - S/MIME 11
Ø need a session key for each message
l of varying sizes: 56-bit DES, 128-bit CAST or
Ø generated using ANSI X12.17 mode Ø uses random inputs taken from previous
May 2012 PGP - S/MIME 12
Ø since many public/private keys may be in use
l could send full public-key with every message l but this is inefficient
Ø rather use a key identifier (ID) based on key
l is least significant 64-bits of the key l will very likely be unique
Ø also use key ID in signatures
May 2012 PGP - S/MIME 13
May 2012 PGP - S/MIME 14
Ø each PGP user has a pair of keyrings:
l public-key ring contains all the public-keys of
l private-key ring contains the public/private key
Ø security of private keys thus depends on
May 2012 PGP - S/MIME 15
May 2012 PGP - S/MIME 16
May 2012 PGP - S/MIME 17
May 2012 PGP - S/MIME 18
Ø rather than relying on certificate authorities Ø in PGP every user is own CA
l can sign keys for users they know directly
Ø forms a “web of trust”
l trust keys have signed l can trust keys others have signed if have a chain of
signatures to them
Ø key ring includes trust indicators Ø users can also revoke their keys
May 2012 PGP - S/MIME 19
May 2012 PGP - S/MIME 20
May 2012 PGP - S/MIME 21
Ø OpenPGP is an Internet standard (RFC
Ø many e-mail clients provide OpenPGP-
Ø best known implementations of OpenPGP
l PGP by PGP Inc. l GNU Privacy Guard (GnuPG or GPG) by The
May 2012 PGP - S/MIME 22
Ø supported email clients
l Mozilla Thunderbird l Mozilla SeaMonkey l Eudora 1.0 OSE l Postbox
Ø GnuPG Software Ø EnigMail plugin
l language packs available
May 2012 PGP - S/MIME 23
May 2012 PGP - S/MIME 24
Ø security enhancement to MIME email
l original Internet RFC822 email was text only l MIME provided support for varying content
l with encoding of binary data to textual form l S/MIME added security enhancements
Ø have S/MIME support in many mail agents
l eg MS Outlook, Mozilla, Mac Mail etc
May 2012 PGP - S/MIME 25
Ø enveloped data
l encrypted content and associated keys
Ø signed data
l encoded message + signed digest
Ø clear-signed data
l cleartext message + encoded signed digest
Ø signed & enveloped data
l nesting of signed & encrypted entities
May 2012 PGP - S/MIME 26
Ø digital signatures: DSS & RSA Ø hash functions: SHA-1 & MD5 Ø session key encryption: ElGamal & RSA Ø message encryption: AES, Triple-DES,
Ø MAC: HMAC with SHA-1 Ø have process to decide which algs to use
May 2012 PGP - S/MIME 27
Ø S/MIME secures a MIME entity with a
Ø forming a MIME wrapped PKCS object Ø have a range of content-types:
l enveloped data l signed data l clear-signed data l registration request l certificate only message
May 2012 PGP - S/MIME 28
Ø S/MIME uses X.509 v3 certificates Ø managed using a hybrid of a strict X.509
Ø each client has a list of trusted CA’s certs Ø and own public/private key pairs & certs Ø certificates must be signed by trusted CA’s
May 2012 PGP - S/MIME 29
Ø have several well-known CA’s Ø Verisign one of most widely used Ø Verisign issues several types of Digital IDs Ø increasing levels of checks & hence trust
Class Identity Checks Usage 1 name/email check web browsing/email 2 + enroll/addr check email, subs, s/w validate 3 + ID documents e-banking/service access
May 2012 PGP - S/MIME 30
Ø 3 proposed enhanced security services:
l signed receipts l security labels l secure mailing lists
May 2012 PGP - S/MIME 31