Class: OpenSSL::PKey::EC

Inherits:
Object
  • Object
show all
Defined in:
lib/r509/ec-hack.rb,
lib/r509/ec-hack.rb

Overview

marked as @private so it won’t appear in the yard doc

Constant Summary collapse

UNSUPPORTED =
true

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ EC

Returns a new instance of EC.

Raises:



29
30
31
# File 'lib/r509/ec-hack.rb', line 29

def initialize(*args)
  raise R509::R509Error, "EC is unavailable. You may need to recompile Ruby with an OpenSSL that has elliptic curve support."
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object

Raises:



33
34
35
# File 'lib/r509/ec-hack.rb', line 33

def method_missing(method, *args, &block)
  raise R509::R509Error, "EC is unavailable. You may need to recompile Ruby with an OpenSSL that has elliptic curve support."
end

Instance Method Details

#private?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/r509/ec-hack.rb', line 14

def private?
  private_key?
end