Class: Noise::Functions::DH::ED448
- Inherits:
-
Object
- Object
- Noise::Functions::DH::ED448
- Defined in:
- lib/noise/functions/dh/ed448.rb
Constant Summary collapse
- DHLEN =
Ed448::X448::X448_PRIVATE_BYTES, spelled out so this file loads without the gem.
56
Class Method Summary collapse
Instance Method Summary collapse
- #dh(private_key, public_key) ⇒ Object
- #dhlen ⇒ Object
- #generate_keypair ⇒ Object
-
#initialize ⇒ ED448
constructor
A new instance of ED448.
Constructor Details
#initialize ⇒ ED448
Returns a new instance of ED448.
12 13 14 |
# File 'lib/noise/functions/dh/ed448.rb', line 12 def initialize Noise.optional_dependency!('ed448') end |
Class Method Details
Instance Method Details
#dh(private_key, public_key) ⇒ Object
22 23 24 |
# File 'lib/noise/functions/dh/ed448.rb', line 22 def dh(private_key, public_key) Ed448::X448.dh(public_key, private_key) end |
#dhlen ⇒ Object
26 27 28 |
# File 'lib/noise/functions/dh/ed448.rb', line 26 def dhlen DHLEN end |