Shiva Logo

Diffee-Hellman Session Key Exchange

Before reading this section, read Asymmetric Cryptographic Systems for more information.

The Diffie-Hellman key exchange protocol is based on an asymmetric algorithm. In asymmetric cryptographic systems, the key used to encrypt data is different from the key used to decrypt it. The key used to encrypt the data is usually referred to as a public key, while the key used to decrypt the data is called the private key, and the public key is derived from the private key. The length of the public and private keys can be 512 bits, 1024 bits, or 2048 bits.

The problem of key exchange between Shiva VPN Gateway components is solved using a protocol known as the Diffie-Hellman key exchange protocol. This protocol must be followed whenever two Shiva VPN components first begin to communicate, or when a session key expires. The strength of this protocol is that it allows the two components to negotiate or decide on a common session key without ever exchanging the key.

In general, when two devices exchange some data using an asymmetric cryptographic system, each device first requests the public key of the other device. They then use the public key of the other device to encrypt the data. When the other device receives the data, it can then use its private key to decrypt the data. As the name suggests, public keys are not secret and are made known to any device that requests them. Private keys, however, should never be revealed or distributed.

The Diffie-Hellman protocol specifies that the two components negotiating a common session key should each choose half of a session key. They must also each derive some parameters that can be used to calculate the same half-session key. It is these parameters that are exchanged using the public/private key technique. Once the parameters are exchanged, then the second half of the session key can be calculated.

Notice that the session keys are never actually exchanged. The parameters for calculating half a session key are sent. To derive the full session key, both packets must be trapped and then broken. The effort required to break keys with lengths of 512, 1024, or 2048 bits makes this attack impractical.

The vulnerability of this type of key exchange protocol is the public key exchange.

Crypto Period

A crypto period defines how long a session key is actually used. Key lifetimes (crypto-periods) affect encryption strength because the longer the same session key is used the greater the chance that it is compromised. Additionally, the more data that is secured with a given key, the greater the loss if the key is compromised.

Long crypto-periods (key lives) also provide more ammunition for an adversary to break the key since the adversary potentially has access to significantly more data to work with. Finally, the longer a key is in use, the greater the temptation to break the keys since breaking the key provides the adversary with access to significantly more valuable data.

Related Information

Data Encryption Standard (DES)

Triple Pass DES

3DES

Virtual Private Networking (VPN)

[ Top of Page... ]

[ Back to Shiva Configurator Directory ]