IEEE 2030.5 Security Overview

Total Page:16

File Type:pdf, Size:1020Kb

IEEE 2030.5 Security Overview IEEE 2030.5 Security Overview Gordon Lum Kitu Systems July 24, 2018 Kitu Systems 1 Agenda Brief IEEE 2030.5 Overview IEEE 2030.5 TLS Cipher Suite IEEE 2030.5 Public Key Infrastructure (PKI) July 24, 2018 Kitu Systems 2 IEEE 2030.5 High-Level Overview What is IEEE 2030.5 • An Application Layer Protocol for Smart Energy Communications User Application • Based on IEC 61968 Common Information Model (CIM) • Uses a Client – Server architecture Application Layer IEEE 2030.5 (XML Schema) • Uses HTTP over TCP/IP (both IPv4 and IPv6) • Uses XML/EXI payload using a schema based on the IEC 61968 UML Presentation Layer HTTP(S) mDNS • Uses RESTful model of interaction (GET, PUT, POST, DELETE) TCP UDP • Uses TLS for point to point security between Client and Server Transport Layer • IEEE 2030.5 is part of the NIST/SGIP Catalog of Standards Network Layer IPv4, IPv6 • CSIP uses the IEEE 2030.5 security model Link Layer Ethernet (802.3) MAC Physical Layer Wired, Wireless, Powerline July 24, 2018 Kitu Systems 3 IEEE 2030.5 High-Level Overview What is the Status of IEEE 2030.5 • Initial “S0” version of IEEE 2030.5 approved in 2013. • Updated “S1” version of IEEE 2030.5 has been approved and is awaiting official publication, which should be imminent. • A new IEEE Project Authorization Request (PAR) has been approved as a vehicle for addressing the next round of updates. What changed between S0 and S1? • Main changes were to add additional support for DER functionality – specifically to support all aspects of IEEE 1547 and CA Rule 21, phases 1, 2, and 3. • No major changes to the IEEE 2030.5 Security Model July 24, 2018 Kitu Systems 4 IEEE 2030.5 TLS Cipher Suite Mandates the use of a single cipher suite that provides a security level of 128 Bits • The level of security is measured in Bits as defined in NIST SP 800-57 TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 TLS 1.2 Key Exchange Signature Bulk Encryption Message Authentication Algorithm Authentication Algorithm Algorithm Algorithm Elliptic-Curve Elliptic-Curve AES-128 Counter with CBC-MAC Diffie-Hellman Digital Signature (128-bit blocks) AEAD Algorithm Ephemeral Algorithm (128-bit keys) July 24, 2018 Kitu Systems 5 Cipher Suite: TLS Details Mandates the use of TLS version 1.2 • Prevents protocol downgrade attacks Mandates the use of the single cipher suite • Prevents weak cipher downgrade attacks • Promotes interoperability Supports Mutual Authentication of the Server and Client • Both the Server and Client have certificates that are exchanged and authenticated during the TLS Handshake No requirement to support Session Resumption or Session Tickets • These options allow the Server and Client to negotiate the re-use of the Master Secret generated from a previous session, thus avoiding the computationally expensive public key operations needed to generate a new Master Secret. • But either can be negotiated during the TLS Handshake if both sides support it. Most current implementations support Session Resumption. Mar 14, 2018 Kitu Systems Proprietary 6 Cipher Suite: Key Exchange Details Purpose of the Key Exchange Algorithm is for both sides to agree on a secure traffic encryption key Uses Elliptic Curve Diffie-Hellman Key Agreement • The elliptic curve variation of the Diffie-Hellman key agreement algorithm is used to derive a shared Master Secret • The security of ECDH is based on the elliptic curve analog of the discrete-log problem • Uses the well-known NIST P-256 (also known as secp256r1 and prime256v1) • The P-256 curve provides 128 bits of security • One advantage of ECC over RSA is the key size for a given security strength is much smaller. For example, to provide a security strength of 128 bits, ECC requires a key size of 256 bits whereas RSA requires 3072 bits. • The are efficient software and hardware solutions for implementing public key operations using the P-256 curve Uses the “Ephemeral” variation to provide Perfect Forward Secrecy • The final E in ECDHE stands for “ephemeral” • Instead of using its permanent public/private keypair to generate the Master Secret, each endpoint generates a temporary “ephemeral” keypair for generating the Master Secret for this session. • If the permanent public/private keypair is compromised, the attacker still cannot decode past sessions because the Master Secret was based on ephemeral keys, not the compromised permanent key July 24, 2018 Kitu Systems 7 Cipher Suite: Signature Algorithm Details Uses Elliptic Curve Digital Signature Algorithm • The elliptic curve variation of the Digital Signature Algorithm for authentication • The security of ECDSA is based on the elliptic curve analog of the discrete-log problem • Uses the well-known NIST P-256 (also known as secp256r1 and prime256v1) • The P-256 curve provides 128 bits of security • One advantage of ECC over RSA is the key size for a given security strength is much smaller. For example, to provide a security strength of 128 bits, ECC requires a key size of 256 bits whereas RSA requires 3072 bits. • The are efficient software and hardware solutions for implementing public key operations using the P-256 curve July 24, 2018 Kitu Systems 8 Cipher Suite: Bulk Encryption Algorithm Uses AES-128 as the Bulk Encryption Algorithm The encryption key and initialization vector for AES-128 is derived from perform SHA-256 hashes over the Master Secret generated from the ECDHE key agreement algorithm AES-128 is used to encrypt all application traffic after successfully completing the TLS Handshake AES-128 provides 128 bits of security SHA-256, which is used to hash the Master Secret, provides 128 bits of security There are efficient hardware and software solutions for implementing AES-128 July 24, 2018 Kitu Systems 9 Cipher Suite: Message Authentication Algorithm Uses Counter mode with CBC-MAC (CCM) as the combined Encryption and Message Authentication algorithm CCM belongs to the class of AEAD (Authenticated Encryption with Additional Data) algorithms that perform encryption and message authentication in one algorithm The current school of thought in the security world is that AEAD algorithms provide better security than independently encrypting and then authenticating a message Uses AES-128 as the underlying encryption algorithm There are efficient hardware and software solutions for implementing CCM. Most ZigBee devices have hardware support for CCM. July 24, 2018 Kitu Systems 10 Cipher Suite: Background Why was the TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 cipher suite chosen in 2013? • Desire to comply with the NSA Suite B recommendations in effect at that time What is NSA Suite B? • The United States government published CNSSP-15 (2012) – guidelines for "NSA Suite B Cryptography" • Defines cryptographic algorithm policy for national security systems (NSS) • Defines a timeline for their adoption and implementation What were the NSA Suite B recommendations in 2013? • Defined two levels of security o SECRET – equivalent to 128 bits of security o TOP SECRET – equivalent to roughly 192 bits of security • Exclusive use of ECC for public key algorithms. National security systems were to transition away from RSA and only use ECC. • Use of AEAD authentication algorithms IEEE 2030.5 chose the cipher suite to comply with NSA Suite B recommendations at the SECRET level July 24, 2018 Kitu Systems 11 Cipher Suite: Looking Forward – Is the Cipher Suite Still Good? Changes in NSA Suite B since 2013 • CNSS Advisory Memorandum Information Assurance 02-15 (July 2015) rescinded CNSSP-15 (2012) Suite B recommendations. • Purported reason was the potential of Quantum Computing made NSA rethink their recommendations. NSA wants to pursue the use of Quantum Computing resistant algorithms. However, no new QC-resistant algorithms were proposed. What are the NSS recommendations today? • CNSSP-15 (2016) formally adopted the contents of the Advisory Memorandum which rescinded CNSSP-15 (2012) • Removes the SECRET category • Allows the continued use of RSA (with appropriate key sizes). This was done in recognition that there are still large number of legacy systems using RSA • Recommends that if you are transitioning based on the original Suite B recommendations, you should continue to do so. • Future systems should use QC-resistant algorithms that will be specified in a future memorandum Should the IEEE 2030.5 Cipher Suite change because of the new NSS recommendations? • OPINION: I think the original NSA Suite B is still good practice, and is not in conflict with the new recommendations, so the choice of cipher suites is still as valid today as it was in 2013 July 24, 2018 Kitu Systems 12 Cipher Suite: Looking Forward – Is the Cipher Suite Still Good? TLS 1.3 • TLS 1.3 was recently approved and will eventually replace TLS 1.2 • One of the goals of TLS 1.3 was to remove all the insecure algorithms present in TLS 1.2 and earlier (e.g. SHA-1, MD5, DES, RC4, etc.) • All approved algorithms in TLS 1.3 have Perfect Forward Secrecy • All approved authentication algorithms in TLS 1.3 use an AEAD algorithm • TLS 1.3 directly supports ECC and RSA The IEEE 2030.5 Cipher Suite complies with all the security features used in TLS 1.3 July 24, 2018 Kitu Systems 13 Cipher Suite: Looking Forward – Is 128 bits of Security Still Good? Is 128 bits of security still good in 2018? • Yes, see comparison chart Bits of Cipher PCI 2.0 Suite B Suite B CNSS • There are no known weaknesses to AES-128 or ECC Security Algorithm Compliant SECRET TOP SECRET 02-15 with the P-256 curve ≤ 56 DES 2L-TDES 80 RSA 1024 ü Comparison with Financial Industry Requirements ECC 160 • The Payment Card Industry (PCI) Standard version 2 3L-TDEA ü (2014) requires a security strength of 112 bits to 112 RSA 2048 ü secure financial transactions ECC 224 ü AES-128 ü ü 128 RSA 3072 ü ü ECC 256 ü ü AES-192 ü 192 RSA 7680 ü ECC 384 ü ü ü AES-256 ü ü ü 256 RSA 15360 ü ECC 512 ü July 24, 2018 Kitu Systems 14 IEEE 2030.5 Public Key Infrastructure (PKI) Basic PKI Assumptions • There exists an IEEE 2030.5 compliant Root Certificate Authority (Root CA) • The Root CA anD/or suborDinate CA’s issue Device certificates • All IEEE 2030.5 Devices have a Device certificate issueD by a valiD CA • All IEEE 2030.5 Devices have a copy of the Root CA public key o This key is obtained out of banD (e.g.
Recommended publications
  • Cipher Support on a Citrix MPX/SDX (N3) Appliance
    Cipher support on a Citrix MPX/SDX (N3) appliance The following table lists the support for different ciphers on SSL entities, such as virtual server, frontend, backend, and internal services. On an SDX appliance, if an SSL chip is assigned to a VPX instance, the cipher support of an MPX appliance applies. Otherwise, the normal cipher support of a VPX instance applies. From release 10.5 build 56.22, NetScaler MPX appliances support full hardware optimization for all ciphers. In earlier releases, part of ECDHE/DHE cipher optimization was done in software. Use the 'show hardware' command to identify whether your appliance has N3 chips. > sh hardware Platform: NSMPX-22000 16*CPU+24*IX+12*E1K+2*E1K+4*CVM N3 2200100 Manufactured on: 8/19/2013 CPU: 2900MHZ Host Id: 1006665862 Serial no: ENUK6298FT Encoded serial no: ENUK6298FT Done How to read the table Unless a build number is specified, a cipher suite is supported for all builds in a release. Example • 10.5, 11.0, 11.1, 12.0, 12.1, 13.0: All builds of 10.5, 11.0, 11.1, 12.0, 12.1, 13.0, releases. • 11.1, 12.0, 12.1, 13.0: All builds of 11.1, 12.0, 12.1, 13.0 releases. • 10.5-53.x and later, 11.0, 11.1, 12.0, 12.1, 13.0: Build 53.x and later in release 10.5. All builds of 11.0, 11.1, 12.0, 12.1, 13.0 releases. • NA: not applicable. Ciphersuite Name Hex Wireshark Ciphersuite Name Builds Builds Code Supported Supported (frontend) (backend) TLS1-AES-256-CBC-SHA 0x0035 TLS_RSA_WITH_AES_256_CB 10.5, 11.0, 10.5, 11.0, C_SHA 11.1, 12.0, 11.1, 12.0, 12.1, 13.0 12.1, 13.0 TLS1-AES-128-CBC-SHA 0x002f
    [Show full text]
  • Cipher Support on a Citrix ADC VPX Appliance
    Cipher support on a Citrix VPX appliance The following table lists the support for different ciphers on SSL entities, such as virtual server, services, and internal services. How to read the table Unless a build number is specified, a cipher suite is supported for all builds in a release. Example • 10.5, 11.0, 11.1, 12.0, 12.1, 13.0: All builds of 10.5, 11.0, 11.1, 12.0, 12.1, 13.0 releases. • 11.1, 12.0, 12.1, 13.0: All builds of 11.1, 12.0, 12.1, 13.0 releases. • 10.5-53.x and later, 11.0, 11.1, 12.0, 12.1, 13.0: Build 53.x and later in release 10.5. All builds of 11.0, 11.1, 12.0, 12.1, 13.0 releases. • NA: not applicable. Cipher Suite Name Hex Wireshark Cipher Suite Name Builds Builds Code Supported Supported (frontend) (backend) TLS1-AES-256-CBC-SHA 0x0035 TLS_RSA_WITH_AES_256_CBC 10.5, 11.0, 10.5, 11.0, _SHA 11.1, 12.0, 11.1, 12.0, 12.1, 13.0 12.1, 13.0 TLS1-AES-128-CBC-SHA 0x002f TLS_RSA_WITH_AES_128_CBC 10.5, 11.0, 10.5, 11.0, _SHA 11.1, 12.0, 11.1, 12.0, 12.1, 13.0 12.1, 13.0 TLS1.2-AES-256-SHA256 0x003d TLS_RSA_WITH_AES_256_CBC 11.0-66.x and 12.0 56.x and _SHA256 later, 11.1, later, 12.1, 12.0, 12.1, 13.0 13.0 TLS1.2-AES-128-SHA256 0x003c TLS_RSA_WITH_AES_128_CBC 11.0-66.x and 12.0 56.x and _SHA256 later, 11.1, later, 12.1, 12.0, 12.1, 13.0 13.0 TLS1.2-AES256-GCM-SHA384 0x009d TLS_RSA_WITH_AES_256_GC 11.0-66.x and 12.0 56.x and M_SHA384 later, 11.1, later, 12.1, 12.0, 12.1, 13.0 13.0 TLS1.2-AES128-GCM-SHA256 0x009c TLS_RSA_WITH_AES_128_GC 11.0-66.x and 12.0 56.x and M_SHA256 later, 11.1, later, 12.1, 12.0, 12.1, 13.0 13.0 TLS1-ECDHE-RSA-AES256-SHA
    [Show full text]
  • Analysis of DTLS Implementations Using Protocol State Fuzzing
    Analysis of DTLS Implementations Using Protocol State Fuzzing Paul Fiterau-Brostean and Bengt Jonsson, Uppsala University; Robert Merget, Ruhr-University Bochum; Joeri de Ruiter, SIDN Labs; Konstantinos Sagonas, Uppsala University; Juraj Somorovsky, Paderborn University https://www.usenix.org/conference/usenixsecurity20/presentation/fiterau-brostean This paper is included in the Proceedings of the 29th USENIX Security Symposium. August 12–14, 2020 978-1-939133-17-5 Open access to the Proceedings of the 29th USENIX Security Symposium is sponsored by USENIX. Analysis of DTLS Implementations Using Protocol State Fuzzing Paul Fiterau-Bro¸stean˘ Bengt Jonsson Robert Merget Joeri de Ruiter Uppsala University Uppsala University Ruhr University Bochum SIDN Labs Konstantinos Sagonas Juraj Somorovsky Uppsala University Paderborn University Abstract reach 11.6 billion by 2021 [26]. This will constitute half of all devices connected to the Internet, with the percentage set to Recent years have witnessed an increasing number of proto- grow in subsequent years. Such trends also increase the need cols relying on UDP. Compared to TCP, UDP offers perfor- to ensure that software designed for these devices is properly mance advantages such as simplicity and lower latency. This scrutinized, particularly with regards to its security. has motivated its adoption in Voice over IP, tunneling techno- DTLS is also used as one of the two security protocols in logies, IoT, and novel Web protocols. To protect sensitive data WebRTC, a framework enabling real-time communication. exchange in these scenarios, the DTLS protocol has been de- WebRTC can be used, for example, to implement video con- veloped as a cryptographic variation of TLS.
    [Show full text]
  • Prying Open Pandora's Box: KCI Attacks Against
    Prying open Pandora’s box: KCI attacks against TLS Clemens Hlauschek, Markus Gruber, Florian Fankhauser, Christian Schanes RISE – Research Industrial Systems Engineering GmbH {clemens.hlauschek, markus.gruber, florian.fankhauser, christian.schanes}@rise-world.com Abstract and implementations of the protocol: their utility is ex- tremely limited, their raison d’ˆetre is practically nil, and Protection of Internet communication is becoming more the existence of these insecure key agreement options common in many products, as the demand for privacy only adds to the arsenal of attack vectors against cryp- in an age of state-level adversaries and crime syndi- tographically secured communication on the Internet. cates is steadily increasing. The industry standard for doing this is TLS. The TLS protocol supports a multi- 1 Introduction tude of key agreement and authentication options which provide various different security guarantees. Recent at- The TLS protocol [1, 2, 3] is probably the most tacks showed that this plethora of cryptographic options widely used cryptographic protocol on the Internet. in TLS (including long forgotten government backdoors, It is designed to secure the communication between which have been cunningly inserted via export restric- client/server applications against eavesdropping, tamper- tion laws) is a Pandora’s box, waiting to be pried open by ing, and message forgery, and it also provides additional, heinous computer whizzes. Novel attacks lay hidden in optional security properties such as client authentica- plainsight. Parts of TLS areso oldthat theirfoul smell of tion. TLS is an historically grown giant: its predecessor, rot cannot be easily distinguished from the flowery smell SSL [4,5], was developed more than 20 years ago.
    [Show full text]
  • Matrixssl Elliptic Curve Cipher Suites
    MatrixSSL Elliptic Curve Cipher Suites Electronic versions are uncontrolled unless directly accessed from the QA Document Control system. Printed version are uncontrolled except when stamped with ‘VALID COPY’ in red. External release of this document may require a NDA. © INSIDE Secure - 2016 - All rights reserved TABLE OF CONTENTS 1 ELLIPTIC CURVE CRYPTOGRAPHY ....................................................................... 3 2 ECC CIPHER SUITES ......................................................................................... 4 2.1 Variations .......................................................................................................... 4 2.1.1 ECDHE_ECDSA ............................................................................................... 4 2.1.2 ECDHE_RSA ................................................................................................... 4 2.1.3 ECDH_ECDSA ................................................................................................. 4 2.1.4 ECDH_RSA ...................................................................................................... 4 2.2 Support in MatrixSSL ........................................................................................ 4 3 WHEN ECC CIPHER SUITES ARE A GOOD ALTERNATIVE ...................................... 5 4 API .................................................................................................................. 6 2 © INSIDE Secure – 2016 - All rights reserved 1 ELLIPTIC CURVE CRYPTOGRAPHY This document
    [Show full text]
  • TLS Cipher Suites Recommendations: a Combinatorial Coverage Measurement Approach
    TLS Cipher Suites Recommendations: A Combinatorial Coverage Measurement Approach Dimitris E. Simos∗, Kristoffer Kleine∗, Artemios G. Voyiatzis∗, Rick Kuhnx, Raghu Kackerx ∗ SBA Research, Vienna, Austria Email: fdsimos,kkleine,[email protected] x NIST, Information Technology Laboratory, Gaithersburg, MD, USA Email: fd.kuhn.nist.gov,[email protected] Abstract—We present a coverage measurement for TLS ci- channel and, at the same time, also conform to a desired pher suites recommendations provided by various regulatory level of security. It not enough for a TLS implementation and intelligence organizations such as the IETF, ENISA, the to support a set cryptographic algorithms for various tasks German BSI, Mozilla and the USA NSA. These cipher suites are measured and analyzed using a combinatorial approach, (e.g., encryption or authentication) but also to ensure that only which was made feasible via developing the necessary input “secure” combinations of them are accepted and used. models. Besides, shedding light on the coverage achieved by In this paper, we perform a study of the combinatorial the proposed recommendations we discuss implications towards coverage of the TLS cipher suites. The aim of the study is aspects of test quality. One of them relates to the testing of a TLS implementation, where a system designer or tester should expand to provide insights on the coverage achieved by the proposed the TLS cipher suite registry and integrate the information back recommendations and guide, if possible, the selection of ap- to the TLS implementation itself such that the (overall) testing propriate test suites that minimize the number of combinations effort is reduced.
    [Show full text]
  • An Internet-Wide Analysis of Diffie-Hellman Key Exchange and X
    Western University Scholarship@Western Electronic Thesis and Dissertation Repository 8-23-2017 1:30 PM An Internet-Wide Analysis of Diffie-Hellmane K y Exchange and X.509 Certificates in TLS Kristen Dorey The University of Western Ontario Supervisor Dr. Aleksander Essex The University of Western Ontario Graduate Program in Electrical and Computer Engineering A thesis submitted in partial fulfillment of the equirr ements for the degree in Master of Engineering Science © Kristen Dorey 2017 Follow this and additional works at: https://ir.lib.uwo.ca/etd Recommended Citation Dorey, Kristen, "An Internet-Wide Analysis of Diffie-Hellmane K y Exchange and X.509 Certificates in TLS" (2017). Electronic Thesis and Dissertation Repository. 4792. https://ir.lib.uwo.ca/etd/4792 This Dissertation/Thesis is brought to you for free and open access by Scholarship@Western. It has been accepted for inclusion in Electronic Thesis and Dissertation Repository by an authorized administrator of Scholarship@Western. For more information, please contact [email protected]. Abstract Transport Layer Security (TLS) is a mature cryptographic protocol, but has flexibility dur- ing implementation which can introduce exploitable flaws. New vulnerabilities are routinely discovered that affect the security of TLS implementations. We discovered that discrete logarithm implementations have poor parameter validation, and we mathematically constructed a deniable backdoor to exploit this flaw in the finite field Diffie-Hellman key exchange. We described attack vectors an attacker could use to position this backdoor, and outlined a man-in-the-middle attack that exploits the backdoor to force Diffie-Hellman use during the TLS connection. We conducted an Internet-wide survey of ephemeral finite field Diffie-Hellman (DHE) across TLS and STARTTLS, finding hundreds of potentially backdoored DHE parameters and partially recovering the private DHE key in some cases.
    [Show full text]
  • IT Security Guidelines for Transport Layer Security (TLS)
    IT Security Guidelines for Transport Layer Security (TLS) National Cyber Security Centre The National Cyber Security Centre (NCSC), in collaboration with The following organizations and individuals have provided the business community, government bodies and academics, is valuable contributions: working to increase the ability of Dutch society to defend itself in - Autoriteit Persoonsgegevens the digital domain. - Belastingdienst - Centric The NCSC supports the central government and organisations in - Dienst Publiek en Communicatie the critical infrastructure sectors by providing them with expertise - Forum Standaardisatie and advice, incident response and with actions to strengthen crisis - IBD management. In addition, the NCSC provides information and - KPN advice to citizens, the government and the business community - NLnet Labs relating to awareness and prevention. The NCSC thus constitutes - Northwave the central reporting and information point for IT threats and - Platform Internetstandaarden security incidents. - RDW - SURFnet These IT Security Guidelines for Transport Layer Security were frst - de Volksbank published by the NCSC in 2014. This update (v2.1) was published in - Z-CERT 2021. See the appendix Changes to these guidelines for more details. - Daniel Kahn Gillmor, ACLU This publication was produced in collaboration with the following - Tanja Lange, Eindhoven University of Technology partners: - Kenny Paterson, ETH Zurich - the national communication security agency (NBV), part of the - Rich Salz, Akamai Technologies general
    [Show full text]
  • Key Establishment in TLS Chris Hawk, [email protected]
    Key Establishment in TLS Chris Hawk, [email protected] TLS Protocols • Handshake Protocol • Alert Protocol • Change Cipher Spec Protocol • Application Data Protocol Handshake Protocol • Selects cipher suite • Exchanges authentication credentials • Establishes keys Key Exchange Mechanisms • RSA/RSA Export • Diffie-Hellman • Elliptic Curve Diffie-Hellman Handshake Overview Client Hello List of cipher suites Client Random Data Server Hello Selected cipher suite Server Random Data Server Certificate X.509 Certificate chain Server Key Exchange If necessary Client Key Exchange Key Derivation • Cipher suite key exchange method used to generate the master secret • Key material derived through TLS Pseudo- Random Function (PRF) • Inputs are Master Secret, Client Random, and Server Random RSA Key Exchange • Server sends its certificate containing RSA public key • Client generates random key data, encrypts with server’s public key RSA Export Key Exchange • Server send its RSA certificate • Server generates 512 or 1024 bit key, signs and sends to the client • Client encrypts random key data with ephemeral key Ephemeral Diffie-Hellman • Server sends certificate with DSA or RSA public key • Server generates, signs and sends DH parameters and DH public value • Client generates and sends DH public value Static Diffie-Hellman • Server sends RSA or DSA signed certificate containing DH parameters and public value • Client generates and sends DH public value Elliptic Curve Diffie-Hellman • Server sends ECDSA signed certificate containing an EC public key • Client generates and sends an EC public key Final Key Derivation • Pseudo-Random Function consists of HMAC-MD5 xor HMAC-SHA1 • Final output of PRF is divided into key material for bulk cipher keys, MAC keys, and IVs Abbreviations DSA Digital Signature Algorithm EC Elliptic Curve ECDSA Elliptic Curve DSA DH Diffie Hellman TLS Transport Layer Security .
    [Show full text]
  • Matrixssl Developer's Guide
    MatrixSSL Developer’s Guide MatrixSSL 3.2 Overview 1 Who Is This Document For? 1 Documentation Style Conventions 1 Commercial Version Differences 1 Security Considerations 2 SSL vs. TLS 2 Selecting Cipher Suites 2 Authentication Mode 3 Certificates and Private Keys 4 Application Integration Flow 5 ssl_t Structure 5 Initialization 6 Creating a Session 6 Handshaking 7 Communicating Securely With Peers 9 Ending a Session 11 Closing the Library 11 Configurable Features 12 Functionality Defines 12 PeerSec Networks, Inc. 410 Broadway Ave E. #205 Seattle, WA 98102 T 425.646.7850 F 206.501.4366 [email protected] www.peersec.com Debug Configuration 14 SSL Handshaking 16 Handshake Variations 16 Standard Handshake 16 Client Authentication 17 Session Resumption 18 Re-Handshakes 19 PeerSec Networks, Inc. 410 Broadway Ave E. #205 Seattle, WA 98102 T 425.646.7850 F 206.501.4366 [email protected] www.peersec.com Overview This developer’s guide is a general SSL/TLS overview and a MatrixSSL specific integration reference for adding SSL security into an application. Who Is This Document For? • Software developers that are securing applications with MatrixSSL • Anyone wanting to learn more about MatrixSSL • Anyone wanting to learn more about the SSL/TLS protocol Documentation Style Conventions • File names and directory paths are italicized. • C code literals are distinguished with the Monaco font. Commercial Version Differences Some of the compile options, functions, and structures in this document provide additional features only available in the commercially licensed version of MatrixSSL. Sections of this document that refer to the commercial version will be shaded. MatrixSSL Developer’s Guide © 2002-2011 1/19 Security Considerations Prior to working directly with the MatrixSSL library there are a couple SSL security concepts that application integrators should be familiar with.
    [Show full text]
  • Matrixssl Diffie-Hellman Cipher Suites
    MatrixSSL Diffie-Hellman Cipher Suites Electronic versions are uncontrolled unless directly accessed from the QA Document Control system. Printed version are uncontrolled except when stamped with ‘VALID COPY’ in red. External release of this document may require a NDA. © INSIDE Secure - 2013 - All rights reserved TABLE OF CONTENTS 1 ENABLING DIFFIE-HELLMAN IN MATRIXSSL ............................................................... 3 1.1 Raw Algorithm .................................................................................................... 3 1.2 Cipher Suites ...................................................................................................... 3 2 CLIENT SIDE DIFFIE-HELLMAN ................................................................................... 4 3 SERVER SIDE DIFFIE-HELLMAN .................................................................................. 5 3.1 matrixSslLoadDhParams ................................................................................... 5 3.2 matrixSslLoadDhParamsMem ........................................................................... 5 2 © INSIDE Secure - 2013 - All rights reserved 1 ENABLING DIFFIE-HELLMAN IN MATRIXSSL Diffie-Hellman is a key exchange algorithm that may be optionally included in the SSL protocol. 1.1 Raw Algorithm The define USE_DH must be enabled in the matrixsslConfig.h header file to compile in Diffie-Hellman support. 1.2 Cipher Suites The user must also enable any of the DH cipher suites that are desired. These defines are also listed in
    [Show full text]
  • NIST Special Publication 800-78-4
    NIST Special Publication 800-78-4 Cryptographic Algorithms and Key Sizes for Personal Identity Verification W. Timothy Polk Donna F. Dodson William E. Burr Hildegard Ferraiolo David Cooper This publication is available free of charge from: http://dx.doi.org/10.6028/NIST.SP.800-78-4 C O M P U T E R S E C U R I T Y NIST Special Publication 800-78-4 Cryptographic Algorithms and Key Sizes for Personal Identity Verification W. Timothy Polk Donna F. Dodson William E. Burr Hildegard Ferraiolo David Cooper Computer Security Division Information Technology Laboratory This publication is available free of charge from: http://dx.doi.org/10.6028/NIST.SP.800-78-4 May 2015 U.S. Department of Commerce Penny Pritzker, Secretary National Institute of Standards and Technology Willie May, Under Secretary of Commerce for Standards and Technology and Director Special Publication 800-78-4 Cryptographic Algorithms and Key Sizes for PIV Authority This publication has been developed by NIST to further its statutory responsibilities under the Federal Information Security Modernization Act (FISMA) of 2014, 44 U.S.C. § 3541 et seq., Public Law (P.L.) 113-283. NIST is responsible for developing information security standards and guidelines, including minimum requirements for Federal information systems, but such standards and guidelines shall not apply to national security systems without the express approval of appropriate Federal officials exercising policy authority over such systems. This guideline is consistent with the requirements of the Office of Management and Budget (OMB) Circular A-130, Section 8b(3), Securing Agency Information Systems, as analyzed in Circular A-130, Appendix IV: Analysis of Key Sections.
    [Show full text]