Class: OpenID::DiffieHellman

Class | OpenID::DiffieHellman
In: | lib/openid/dh.rb
Parent: | Object

Encapsulates a Diffie-Hellman key exchange. This class is used internally by both the consumer and server objects.

Read more about Diffie-Hellman on wikipedia: en.wikipedia.org/wiki/Diffie-Hellman

### Methods

from_defaults get_shared_secret new using_default_values? xor_secret

### Attributes

generator | [R] |
modulus | [R] |
public | [R] |

### Public Class methods

from_defaults()

A new DiffieHellman object, using the modulus and generator from the OpenID specification

new(modulus=nil, generator=nil, priv=nil)

### Public Instance methods

get_shared_secret(composite)
using_default_values?()
xor_secret(algorithm, composite, secret)

[Validate]